Youtube playlist
VLC Playlist Parsers
Description:

Import a youtube video / playlist into VLC.


INSTALLATION:
- click on the download button below
- when the file appears click on the menu file > save as... of your browser
- put the file in the vlc /lua/playlist folder, by default:
* Windows (all users): %ProgramFiles%\VideoLAN\VLC\lua\playlist\
* Windows (current user): %APPDATA%\vlc\lua\playlist\
* Linux (all users): /usr/lib/vlc/lua/playlist/
* Linux (current user): ~/.local/share/vlc/lua/playlist/
* Mac OS X (all users): /Applications/VLC.app/Contents/MacOS/share/lua/playlist/
(create directories if they don\'t exist)
/!\ Some browser (Chrome...) may change the file extension for ".txt" instead of ".lua", so make sure you choose "All extensions" in the dialog box when you save the file on your computer.

USAGE:
- Copy the URL of the youtube video or playlist (must contain "list=PL...")
- Start VLC, press Ctrl+N, paste the url then click on "Play" (or Alt+P then Enter), the video /playlist should start

Troubleshooting:
/!\ Follow this steps if and only if you have already install the script and it doesn't work..
/!\ for the actual script see the "download" button (playlist_youtube.lua) below.
If the videos list appears in the Vlc "playlist" view but the videos won't start, follow this steps:
1) delete the file "youtube.luac" in [Vlc directory]/lua/playlist directory (ex: c:\Program Files\VideoLAN\VLC\lua\playlist\youtube.luac)
2) get the latest version of thr "youtube" script from here:
https://raw.githubusercontent.com/videolan/vlc/master/share/lua/playlist/youtube.lua
3) place the file in the directory [Vlc directory]/lua/playlist (where "youtube.luac" was)

/!\/!\/!\ Please do not paste your raw error log here, use a pastebin service like pastebin.com.

Changelog:

1 year ago

- display clean video title and thumbnail
- Add support for playlist with 100+ videos
- fix change in youtube playslists

1 year ago

chisato

https://www.youtube.com/watch?v=2m-O7hPay_w&list=PLyKXXiqMsT1Uzo5POrGDi6j73Us0D0CJI

Report

1 year ago

99lool

when i have shuffle on it just shuffles endlessly and dosnt play video, this a addon problem or vlc thing???

Report

1 year ago

exebetche

I explain the problem; when you load a playlist this is what append:
1) this extension (playlist_youtube.lua) retrieve the list of videos from the url and set the playlist in vlc
2) when a video is loaded, the url is recognized as a youtube url, and the youtube video extension (youtube.lua) retrieve the actual video url from the video web page url
3) plays video...

I guess what's happening:
When Vlc shuffle, it takes a random url from the list and try to play directly, skeepind the 2) step.
So one solution could be to merge the 2 extensions, so it provide directly the actual video url, basically merge steps 1) and 2) into a single step. But that's probably not a good idea because the youtube's video url are temporary. So
the url could expires by the time you reach the end of the playlist and videos would not play anymore.
The other solution is to report this as a bug to the vlc tea, asking they make shuffle function goes as the same steps as a video played normally.

Report

1 year ago

99lool

Hey, thanks so much exebetche! Hope they fix this issue soon.

Report

1 year ago

exebetche

Just a ping, since the quick fix I posted may interest you.

Report

1 year ago

99lool

TY so much exebetche!!

Report

1 year ago

99lool

Hmm i put my playlist in but it dosnt seem to be working similar to last problem but with shuffle off it wont load video and keeps adding a copy of the video it tried to play to the playlist

Report

1 year ago

99lool

NVM< changed some files and some settings seems to work now? TY so much.

Report

1 year ago

dottelevision1

Do you think you could post your solution, or post how to do this even if it's a temporary fix? I have a script that generates new links every day, so this would actually work great for me and it could be a while before VLC actually fixes it on their end.

Thanks!

Report

1 year ago

exebetche

Yeah, sure, I put it as a 2nd download (merged_playlist_youtube.lua). I just tested it very quickly though.

Report

1 year ago

dottelevision1

Thanks for the fix! But how did you get this to work? It's now loading the playlist, not shuffling anymore, but when I click on any of the videos in the playlist it only plays one of the videos.

I tried copying into the folder with youtube.lua and playlist_youtube.lua still there, and also tried replacing them with this script and still get the same result. Taking it back out brings me back to the endless shuffling.

Report

1 year ago

exebetche

As I said before, I merged the script youtube.lua and playlist_youtube.lua into one, so it retrieve the real url of the video directly.

You should replace playlist_youtube.lua with the new one (merged_playlist_youtube.lua).

As I said, I just tested it quickly but it works ok for me. You said Vlc doesn't shuffle anymore? What do you mean, it stops playing after the first video? Does it play the video in order?

Also make sure you use Vlc 2.2.

Report

1 year ago

dottelevision1

Thanks for the quick response! I just meant that the playlist doesn't shuffle endlessly anymore, it actually plays when you click on a video in the playlist.

However, regardless of which video I click Play on, the video that loads is always the same video (the first video in the playlist).

When I Right-Click on any video in the list and select Information, the Location URL is always the first video.

I'm on VLC 2.2 with the merged_playlist_youtube.lua and youtube.lua in the lua/playlist folder. Let me know if I can help debug this any further.

Report

1 year ago

exebetche

You're absolutely right, this doesn't fix anything. I didn't pay attention because the intro of the videos in the playlist I tested was similar.

In fact I see no way to fix this in the script because the network functions are disabled in the vlc/lua playlist module. So you can just read the content of the url you provide, but you can't get the real video url from an other page. That's why you get the same video each time. Sorry to I gave you false hope.

I suggest you fill a bug report to the Vlc team about this.

Report

1 year ago

irish66

Thank you.
although what would be nice would be something like a youtube search option within vlc

Report

1 year ago

Zelioom

Shuffle doesnt work properly, when shuffle is on, and I hit next, it just shuffles through all of the songs endlessly as if I keep hitting next.

Report

1 year ago

exebetche

Just a ping, since the quick fix I posted may interest you.

Report

1 year ago

borek123

Hello,
Can you send me the script too ?
I have problem to shuffle my playlist from YT
My email: XXXXXX
BTW. I have good speed, and stable internet connection but randomly my VLC YT hang. Any clue how to resolve this ?
Thank you in advance :)

Report

2 years ago

netquik

Hi all
I' didn't understand much of the code but i noticed (could be just cases) that some playlist didn't get parsed correctly or such according on if i load playlist url or first video playlist url... bye

Report

2 years ago

lotroj

Hi,
i have problem with playlist which i cannot solve. Here is log http://pastebin.com/gwQ0GkB9

Thank for help

Report

2 years ago

lotroj

single videos works fine

Report

2 years ago

lotroj

ok, i am just an idiot pls delete this, thank

Report

2 years ago

exebetche

For me it's the opposite, the playlist is retrieved properly but single video won't work so as far as I'm concerned the problem come from the "youtube" script of vlc. (tested with Vlc 2.2 RC)

Report

2 years ago

lotroj

I try write all steps i do ...

I have vlc 2.1.5 (newest)
All steps are in C:\Program Files (x86)\VideoLAN\VLC\lua\playlist

1) Delete youtube.luac

2) Create new youtube.lua source is here http://git.videolan.org/?p=vlc.git;a=blob_plain;f=share/lua/playlist/youtube.lua

3) create playlist_youtube.lua source is here http://addons.videolan.org/CONTENT/content-files/149909-playlist_youtube.lua

Report

2 years ago

saiyaku

Hey guys i just found a fix for those that both updated the youtube.luac to the fixed youtube.lua and added this and urls are still not working - when you save the files, don't save them in UNICODE, even though the youtube.lua script requires you to "save information properly", just save them in default ANSII coding and it works!

Report

Supporters

Recent Donations

Be the first to donate
Filename Version Description Filetype Packagetype License Downloads Date Filesize Install
Score 79%
79.00 Likes
21 Dislikes

0 Supporters for Youtube playlist:

Recent Donations:

Be the first to donate
show all
Details
version
updated Aug 22 2015
added Apr 04 2012
downloads
page views 52604
support exebetche
For The Product
Youtube playlist
5 - 10 - 25 - 50 - 100 - 200 - 500