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

3 years ago

exebetche

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

3 years ago

joshtrneny2

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

3 years ago

exebetche

Which I did (line 62).

Report

3 years ago

exebetche

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

Which I did (line 62).

Report

3 years ago

exebetche

Cool, thanks for your input

Report

3 years ago

exebetche

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

Report

3 years ago

joshtrneny2

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

3 years ago

exebetche

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

3 years ago

joshtrneny2

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

3 years ago

exebetche

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

Which I did (line 62).

Report

3 years ago

joshtrneny2

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

3 years ago

exebetche

> 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

3 years ago

joshtrneny2

So it works! Good job

Report

3 years ago

exebetche

If the playlist appears then the plugin is probably working normally, because it's his job - retrieving the playlist, see "Troobleshooting" in description.

Report

3 years ago

nickeox

Would it be possible to make a version of this which will grab videos from the watchlater playlist? It isn't exactly a playlist, which is why the current one doesn't work for it, but honestly, if I could get one for the watchlater, it would be awesome. I looked through your code and tried to make one myself, but got stuck with having it import the urls from the xml file.

Report

3 years ago

exebetche

That doesn't work because the watch later playlist is availbale only for you when you are logged in with your internet browser. This script doesn' do the authentifiaction process so youtube won't let it see this playlist. So it is possible but I don't have enough time or energie to do it now. Sorry. But if you want to do it I could give you advices.

Report

3 years ago

axmiha

Sorry, it seems I pressed "save" more than one time and sent the same comment 3 times. How do I clean this up?

Report

3 years ago

Shurikmacedon

I solved this problem with Orbit downloader.

1. Run Orbit
2. Paste url: http://addons.videolan.org/CONTENT/content-files/149909-playlist_youtube.lua
3. Choose directory to save
4. Do all other steps in instruction

Report

3 years ago

axmiha

Wasn't working. You have to set the youtube playlist to "loop". Press the Loop button in the player controls and the YouTube video will play non-stop in a loop. Now it works.
Here's where I got this info: (http://www.labnol.org/software/youtube-videos-in-vlc-player/26829/)

Report

3 years ago

axmiha

Wasn't working. You have to set the youtube playlist to "loop". Press the Loop button in the player controls and the YouTube video will play non-stop in a loop. Now it works.
Here's where I got this info: (http://www.labnol.org/software/youtube-videos-in-vlc-player/26829/)

Report

3 years ago

axmiha

Wasn't working. You have to set the youtube playlist to "loop". Press the Loop button in the player controls and the YouTube video will play non-stop in a loop. Now it works.
Here's where I got this info: (http://www.labnol.org/software/youtube-videos-in-vlc-player/26829/)

Report

3 years ago

kanape

vlc 2.1.1 used link http://www.youtube.com/playlist?list=PL191437C14EC0BDCB

Not work

Try add this lua, but nothing

Report

3 years ago

cipricus

When I add a playlist link like this (http://www.youtube.com/watch?v=KXlXgpHQw04&list=PLA1ADC39779EDCD03) by ctrl-n it starts playing but in the playlist there's just the first song - and that is the only one played

VLC 2.0.8 Ubuntu-based ElementaryOS, tested with the addons.videolan and with the latest version of the plugin

Report

3 years ago

xmen1111

Loads some files, but shows errors on most others here:
http://www.youtube.com/playlist?list=PLTTnJPdhbbLAzDMOkuAlMK3Xxp7JLCYDP

Report

3 years ago

exebetche

TRhis playlist works fine for me... Which error do you get?

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 52609
support exebetche
For The Product
Youtube playlist
5 - 10 - 25 - 50 - 100 - 200 - 500