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

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

C

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

ufoasd

3 years ago

Works perfect!
Ubuntu 12.04 vlc 2.0.8 firefox 27.0.1

Report

axisambrosia

3 years ago

Hi there,

I'm running vlc on osx and the plugin won't play the videos in the playlist.

It does however add the playlist of youtube to the one in vlc AND it get's all the names of the songs etc. But it just skips the songs and the duration of every song is displayed as 00:00.

Did I do something wrong?

regards

Report

joshtrneny2

3 years ago

Try this. I modified it and it should work: http://goo.gl/lJxGnX

Report

joshtrneny2

3 years ago

Playlist obviously can not be private because VLC does not have to account to login!

Report

C

exebetche

3 years ago

This is spyware to me. Why are you redirecting the request to get the playlist to your own website and serving the same output? What are you trying to achieve?

Report

joshtrneny2

3 years ago

No, it's not spyware. From what I've tried, YouTube will only return the first 100 videos from the playlist. My PHP script, but it returns the entire playlist. You can try it out.

(sorry for my english)

Report

C

exebetche

3 years ago

Ho ok, you didn't mentionned it in your previous comment...
If you have coding knowledge you should try to implement it in lua, I would be glad to put it in the script. I'm not a fan of people knowing what I watch on the internet (beside google and the nsa).

Report

joshtrneny2

3 years ago

I would like to. But I don't know the way to do it in lua. The point id that repeatedly sending a request by shifting the index by 100 (at 101, 201,...). And then I generate XML.

Report

C

exebetche

3 years ago

Which I did (line 62).

Report

C

exebetche

3 years ago

> no! You must insert index parameter to playListURL! :)

Which I did (line 62).

Report

C

exebetche

3 years ago

Cool, thanks for your input

Report

C

exebetche

3 years ago

Would you share what is the url parameter you use to shift the playlist to item 101, 201 and so on?

Report

joshtrneny2

3 years ago

parameter is only &index=X
first I request index=1 then 101, 201,... If index is after end of playlist, YouTube return XML, where aren't <video> tags OR playlist from start! So you have to check the uniqueness of video ID - video can be in playlist only once.

Report

C

exebetche

3 years ago

Ok, I think that's it: http://pastebin.com/LdeR61PD
But i can't find a playlist with more than 100 item could you give the url of one or tell me if the script work?

Report

joshtrneny2

3 years ago

no! You must insert index parameter to playListURL! :)

in PHP:
$url = "http://www.youtube.com/list_ajax?action_get_list=1&style=xml&list=".$_GET['list']."&index=".$index;

Report

C

exebetche

3 years ago

> no! You must insert index parameter to playListURL! :)

Which I did (line 62).

Report

joshtrneny2

3 years ago

Oh I'm sorry. I was inattentive. There is main PHP script http://pastebin.com/pAeAb4xJ

There are Czech words and it's quite confusing - I wrote it quickly. But it works :D

Report

C

exebetche

3 years ago

> Oh I'm sorry. I was inattentive. There is main PHP script http://pastebin.com/pAeAb4xJ

> There are Czech words and it's quite confusing - I wrote it quickly. But it works :D

No problem. I manage to test the script and it seems to work (I put it online).

Report

joshtrneny2

3 years ago

So it works! Good job

Report

5 years ago

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

product-maker tml3nr Nov 05 2017

product-maker aliali2017 Sep 05 2017

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 Sep 05 2017
added Apr 04 2012
downloads today
page views today