I would love the ability for Drafts to get the current playing time of system audio as a script action or an actual action parameter.
I listen to podcasts 90% of the time when driving, and sometimes I’ll load audio into my podcast player that I’ve got to listen to for work or something (and want to get through while I’m driving and additionally enjoy Overcast’s playback improvements). Sometimes I’ll want to take a note on that audio, so I’d love to make an action that I can activate with a Siri shortcut to save the timestamp and then dictate the note I want to make. Maybe also a way to capture the audio title would be useful.
I think the podcast app you are using would have to build that in as something accessible to Shortcuts. In the same way the ‘Get Current Song’ works for the Music app. Then a shortcut could use the information from that to pass into Drafts through a Drafts action.
It may be there’s some way to query the OS for what’s playing, but I’ve simply not (yet) come across anything other than the ‘Get Current Song’ action in shortcuts.
Ah, you’re probably right for getting the currently playing track.
Still hopeful there might be a way to query the system for something else playing and get the current time off of it; Scriptable doesn’t seem to have a way to do this, though, so I have far less hope than I did a few hours ago.
Yes, that is not technically possible. Your podcast app would have to implement a Shortcut action to support it. (Which would not be hard to do. There may be some that already support that, I don’t know)
I threw something simple together for Overcast using the “get URL with timestamp” this’ll do the very simple thing that I wanted in most cases.
Unfortunately, the “podcasts” for which this is most useful are ones I upload myself, which naturally don’t have a URL. I’ll make a request over on the Overcast slack, but listening to ATP, it sounds like there’s a lot happening over there this summer.
That’d be something on Castro’s side entirely unfortunately.
If you were interested in just noting the timestamp down in your Draft (my personal goal, which Overcast can’t do currently because of how the URLs are formatted, but Castro can) you can use the “Replace Text” action with a simple regular expression to get that.
edit: should just be .+# and replace with nothing.
I use the ‘upload’ feature of Overcast. My overall usage suits Overcast better personally and I’m not looking to change things up
Ultimately this flow would be a LOT more work though.
Now that you mention it, it seems like it’s cutting the timestamps despite using that action. Must be an Overcast bug in terms of shortcut integration. I hadn’t paid enough attention to how timestamped URLs for Overcast were supposed to behave in the past.
I’m getting the same behavior for private-password protected feeds and my own uploads (which is to be expected) in terms of not giving up a URL.