Youtube playlist
VLC Playlist Parsers
Score 81%
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.
Last changelog:

5 years ago

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

exebetche

3 years ago

I have no idea how you end up with html in your file because the original file does not contain any. How do you get the file?
There's usually no need to mess up with youtube.luac, only if you have and old version of Vlc.
Yes, the script can only access public videos and playlists, not the private one if that's what you mean.

Report

MrMattiPants

3 years ago

If you can;t seem to get it to work, you may have a similar problem to mine.
First, if you look in your "Playlist" folder, under your "VLC" folder (C:\Program Files (x86)\VideoLAN\VLC\lua\playlist) and you see a bunch of ".LUAC" extensions/file-formats, try compiling the .LUA file to the .LUAC extionsion...

1.) Go to http://luac.mtasa.com/ to use their online LUA to LUAC COMPILER
2.) BROWSE for the file, by clicking on the "Choose File" Button
3.) I left the "Anti-decompile" box CHECKED and the "Encryption" box UNCHECKED!
4.) Click "Submit" to Compile! (If for some reason you get an ERROR, just click the "Back" button in your browser and try again. I had that happen at least once or twice in the past)
5.) Lastly, place the file with the other LUAC files, under your "VLC/LUA/PLAYLIST" Directory!

I hope I could help a few others who may be having problems... Good Luck!!!

Report

JpTM

3 years ago

Unfortunately this didn't work for me :(
Any other suggestions would be highly appreciated :)

Regards

Report

exebetche

3 years ago

Start vlc in debug mode and pastebin you debug log, as explained here:
https://github.com/exebetche/vlsub/wiki/Troubleshooting#if-the-extension-doesnt-appear-in-the-vlc-menu

Report

JpTM

3 years ago

Here is the VLC log:
http://pastebin.com/F6rGQQpA

Regards

PS. My apologies for the double post below. I don't know what happened there :S

Report

exebetche

3 years ago

Vlc doesn't seem to see the script at all, it should be here for you:
d:\Downloads\VideoLan Client\lua\playlist\149909-playlist_youtube.lua

If you have this \lua\playlist\ directory with the file in it, check that it has a ".lua" extension and not ".lua.txt" for example.

Report

JpTM

3 years ago

That's exactly where it is, and it also has the .lua extension :S By default there is also a "youtube.luac" in that folder (aside from a bunch of other .luac files (e.g. dailymotion.luac, vimeo.luac, etc)). I tried it with and without that file. When I tried the suggestion of MrMattiPants I deleted the original.

The only thing I can think of is that it has to necessarily be installed.

Report

JpTM

3 years ago

Hmm... reading back a few more pages, I realise the youtube.luac is actually a different script, so nevermind that :P

Report

JpTM

3 years ago

Ok, so I installed VLC instead of using the portable edition, and now it's working perfectly :D

Report

JpTM

3 years ago

Unfortunately this didn't work for me :(
Any other suggestions would be highly appreciated :)

Regards

Report

JpTM

3 years ago

Unfortunately this didn't work for me :(
Any other suggestions would be highly appreciated :)

Regards

Report

JpTM

3 years ago

I can't get it to work :( When I try to play a playlist (e.g. https://www.youtube.com/playlist?list=PLYqfXQ-ztmZJBrH5uxs0IasF3gUhdTflO) it tells me: "Your input can't be opened: VLC is unable to open the MRL". When I change the https into http it doesn't give me an error, but just doesn't play. It does nothing.

I can however play https URL's of single video's just fine. (E.g. www.youtube.com/watch?v=RgIHxfvsge4)

I use the latest version of VLC (vlc-2.1.5-win32), and downloaded the script from the URL mentioned in troubleshooting. And I doubt it matters, but I use the portable version of VLC.

Regards

Report

thunderrooster

3 years ago

Why wont it work with this link http://youtu.be/JHEv-6KAk1o?list=PLsu-Zcc4mmmXqZF1rUVN09rbVJq-DegXz? Ty.

Report

exebetche

3 years ago

This list works fine for me.

Report

GarfieldICHI

3 years ago

Ok its really simple.

Just Remove the s from the Https part.

Exemple:

https://www.youtube.com/watch?v=k-9Ekhv2eSg (this will not work)

remove the s from https

http://www.youtube.com/watch?v=k-9Ekhv2eSg (now it works)

I hope it will help solve your problem



Report

Bismuth

3 years ago

If you use Google Chrome and you click save as you will get the full HTML data and that is why it does not work.
You should make a file in the playlist folder named "playlist_youtube.luac" (if you are not sure how to make the file a luac file, google how to edit the fileformat)
Then open the file in an text editor (like notepad) and COPY the text from the page you get into when you click "download" and paste in the playlist_youtube.luac. save it and reload VLC

Report

Attila13

3 years ago

So, I don't know if youtube changed something or what, but for some time now for me VLC will load only 80 videos max, even if the playlist has the maximum of 200 videos.
No, the playlist isn't private and doesn't have private videos, so that side is cool.
I noticed that if I open a playlist on youtube it will load only 80 videos at once so I thought that maybe that could be the problem? But after the March update I tried messing a bit with the script and changed the "index" at line 62 to be equal to "2" and changed the values at line 91 and line 91 from 100 to 200 and with this little temporary edit the maximum number of videos went from 80 to 100 in VLC. I tried going further but if I enter everything bigger then 3 on the index the playlist load will skip ahead 10 videos and will start the list from video number 10 and it will load it up until video 110 so this is still 100 videos.
Does somebody know what could be the problem here?

Report

FNCardascia

3 years ago

I'll be honest, I have no idea what the hell I'm doing in regard to troubleshooting.. it really isn't in my forte.

But, I do kinda understand where you're getting from here. Give this a shot.. it worked for me at least in the few 200 playlists I attempted.

Change your local index back to 1. I have no idea what that means so leave it be.

Since youtube decided to be funny and change things around again, it does seem that the max items a playlist will initially load is 80 -- this is where your second part helped.

Change playlist_parsed from 100 to 80... and index +100 to +120.

Hope it helps

Report

Attila13

3 years ago

Unfortunately it didn't worked.. :(
But thanks for the help.

Report

Madze

3 years ago

I had the same problem. The solution of "FNCardascia" only worked for playlists with exactly 200 items. But I just added a variabel pl_chkd which counts how many items of the playlist were checked.

Just add:
line 54 :local pl_chkd = 0
line 74: pl_chkd = pl_chkd + 1

line 54 should be after line
"local index = 1"

line 74 should be after line "for i, video in ipairs(playlist_parsed) do"

replace:
lines 94 - 95:
if pl_chkd == 80 then
index = index + 120

lines 94 - 95 were before
if #playlist_parsed == 100 then
index = index +100

Report

Madze

3 years ago

Sorry for the double post

Just found an error: it didnt load some items, but i fixed it

replace the lines 94-95 with these lines:
if pl_chkd == 80 then
index = 101
elseif pl_chkd == 180 then
index = 201

and if it doesent load all items, look which and how many items it loaded an try some other numbers
hope it helped

Report

Madze

3 years ago

I had the same problem. The solution of "FNCardascia" only worked for playlists with exactly 200 items. But I just added a variabel pl_chkd which counts how many items of the playlist were checked.

Just add:
line 54 :local pl_chkd = 0
line 74: pl_chkd = pl_chkd + 1

line 54 should be after line
"local index = 1"

line 74 should be after line "for i, video in ipairs(playlist_parsed) do"

replace:
lines 94 - 95:
if pl_chkd == 80 then
index = index + 120

lines 94 - 95 were before
if #playlist_parsed == 100 then
index = index +100

Report

Attila13

3 years ago

Thanks for the help, but unfortunately it loads only 100 videos, just like if I'd edit the index to 2 and the line 91-91 from 100 to 200...Don't know what could be the issue, but it's most likely youtube.....because this problem occurred suddenly after youtube did another stupid update to the site...

Report

arsa

3 years ago

I've tried this parser with playlist like https://www.youtube.com/view_play_list?p=63F0C78739B09958 , it will load first video but nothing more. On URLs like https://www.youtube.com/playlist?list=PLFpoEtn7p2i_o3E_KY890OwKerEFwyT6q the plugin will not work at all.

I've looked at the debug console and VLC is using playlist_youtube.lua to read the videos but it will simply not work

Report

exebetche

3 years ago

The first url doesn't work but it's normal the url must contain "list=PL..." like said in the description, I'll add this url format some day.
The second works for me (I like the song in the airplane BTW). Maybe check that Vls is up to date. Beyhond that I can't help you without an error from the console.

Report

5 years ago

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

product-maker gotekus Aug 11 2017

Excellent

product-maker latiosFR Jul 25 2017

product-maker LittleLizzy May 28 2017

product-maker ELKZ Apr 29 2017

product-maker Stretch Dec 27 2016

product-maker dwmed Dec 05 2016

product-maker BB20101997 Sep 24 2016

product-maker Ragiowan Nov 09 2015

product-maker mcq333 Sep 17 2015

product-maker 99lool May 31 2015

product-maker 9207771739 May 01 2015

product-maker DJXAKEP Apr 25 2015

product-maker ziki Apr 21 2015

product-maker dirtyharry85 Apr 09 2015

product-maker gogo57540 Sep 08 2014

product-maker Doyouknow Jul 31 2014

product-maker rezmen1777 Apr 24 2014

product-maker ktb007 Apr 21 2014

product-maker Attila13 Apr 16 2014

product-maker pereov33 Jan 17 2014

product-maker csuno Nov 27 2013

product-maker DFPOWER46 Nov 18 2013

product-maker Snapafun Aug 29 2013

product-maker DevilinPixy Aug 24 2013

product-maker BurakPatat Aug 03 2013

product-maker GuixLe Jul 25 2013

product-maker legluondunet Jul 07 2013

product-maker cipricus May 17 2013

product-maker Argyle May 13 2013

product-maker ufoasd Apr 10 2013

product-maker ringen00 Apr 04 2013

product-maker zequi Feb 12 2013

product-maker HATRED Jan 09 2013

product-maker equiman Nov 30 2012

product-maker btocher Nov 27 2012

product-maker hernansilva Nov 26 2012

product-maker erosenninrho Nov 26 2012

product-maker sirhcits Nov 25 2012

product-maker meow9th Nov 19 2012

product-maker FracExebetche Apr 23 2012

product-maker 6 6

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
updated Aug 11 2017
added Apr 04 2012
downloads today
8
page views today 20