Page 1 of 1

urls in playlist change and wont work anymore

Posted: 26 Dec 2017 15:07
by pew pew
Hi there,

I recently created a playlist which contained youtube urls. Everything seemed to work well, since all the videos played as I clicked on them etc.. I saved the playlist as .m3u. However the next day I wanted to listen to this playlist non of the tracks worked. As I looked into the .m3u file there were no longer the //youtube urls, but //googlevideo urls, which I couldn't even open in my browser. In the browser it says that I don't have the rigthts to access this page.

Also, every song/video I didn't open prior saving the playlist still has the correct youtube url.

Is there a way to prevent the url change??

Re: urls in playlist change and wont work anymore

Posted: 27 Dec 2017 10:01
by Rémi Denis-Courmont
Write the YouTube URL manually in the playlist file, reopen the playing every day :(

Re: urls in playlist change and wont work anymore

Posted: 29 Dec 2017 12:53
by hipster42
Write the YouTube URL manually in the playlist file, reopen the playing every day :(
Might you be able to sketch what a fix would look like so that someone reading this might contribute a patch?

Is this something that can be fixed in `youtube.lua`?

To recap:

# Steps
- Add a youtube page url of the form `https://www.youtube.com/watch?v=TCUBSbJENO4` to a playlist.
- Play the file
- Save the playlist.

# Observed
- The youtube page url is resolved into an MRL which is what VLC saves in the playlist.
- However, youtube MRLs point to the google CDN and as such are transient and expire after some time. The canonical locator for a youtube video seems to be the page URL, which is what should be saved in a playlist.
- Because youtube urls aren't saved in the playlist, creating youtube playlists in vlc is not possible as such playlists quickly become unusable.

Re: urls in playlist change and wont work anymore

Posted: 29 Dec 2017 14:00
by Rémi Denis-Courmont
I suspect that this cannot be fixed in Lua.