Share extension: Create-podcast toggle + auto-generate for tagged bookmarks #3
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add a Create podcast toggle to the share-extension save card. When on, saving the bookmark also kicks off podcast generation. Additionally, support a rule where bookmarks with certain tags auto-generate a podcast without needing the toggle each time.
Motivation
I often know at save-time that I'll want to listen to something later. Being able to flip a toggle (or tag it) and have the podcast ready by the time I open the app closes the loop.
Behavior
Two layers:
listen,podcast) that automatically trigger generation for any bookmark saved with one of them, no toggle needed.Current state of the code
ShareExtension/ShareView.swift. It already has aToggle("Read later", ...)(~line 152) — the new toggle sits right next to it. Tags are parsed viaparsedTags.commit()(~line 272) writes the bookmark throughLinkdingAPI. After a successful create/update, if the toggle is on (orparsedTagsintersects the configured auto-tags), enqueue generation.Dependencies