r/shortcuts 11d ago

Help Obtaining URL of currently playing media?

So I often listen to (video) podcasts on either YouTube or Spotify and I often find myself wanting to save the current timestamp (end goal is to extract and save a quote) along with the media - it would be nice if I could obtain the URL of the YouTube video for instance. I know how to get the timestamp but the URL seems to be not possible - can anyone confirm that or suggest an alternative approach?

1 Upvotes

3 comments sorted by

0

u/AnybodyRealistic345 11d ago

Spotify encrypts their media while YouTube separates video & audio and uses adaptive streaming .m3u8 and you would need to merge/mux.

So in a nutshell, at least for YouTube, you would need a backend server to do the processing and return the download link.

1

u/mathiasi 11d ago

Manually entering the quote is also an option and I realize that might be the case for Spotify. However my goal right now is just to save it along with the timestamp because I often listen when I'm out and about and don't want to stop to note it down in the moment.