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

exebetche

Oh, actually there's a way to set an option named "preferred-resolution" that allow you to set the resolution you want without modifying the script.
You just start Vlc with the option, like that:
vlc.exe --preferred-resolution=360

Report

1 year ago

mcq333

I found this litlle thing, seems that theres is a way but I'm not sure how to made it works: https://smallhacks.wordpress.com/2015/03/23/how-to-listen-youtube-live-stream-using-vlc-or-other-players/

Also on Youtube-dl configuration(https://github.com/rg3/youtube-dl/blob/master/README.md#configuration) they say:

For example, with the following configration file youtube-dl will always extract the audio, not copy the mtime and use proxy:

--extract-audio
--no-mtime
--proxy 127.0.0.1:3128

But again, I don't have any ideo of how made it works.

Report

1 year ago

exebetche

This is if you want to download the file from Youtube on your computer then extract only the music to listen later. If you want to do that you don't need "youtube-dl", you can do it with Vlc only.

Report

1 year ago

mcq333

I'm a bit confused... then... How JDownloader works? https://i.imgur.com/Pj6dhus.jpg

Report

1 year ago

exebetche

I guess it download the stream and extract the audio on the fly. But it still use your bandwidth to download both stream.

Report

1 year ago

mcq333

I'm pretty sure Jdonwloader just download the audio-file, I download just the audio in a few seconds, but the video take minutes(I downloaded two times, first the audio and after checking It is Ok, tried with the video). Anyway, modifying the direct acces on the desktop works fine(with 240 works awesome) so I'm using it for now, but maybe You can find a way in the future(I pray for it) and realese... "Youtube Music(Just music)"

If someone read this and is not sure of how to made the Direct Acces Method:
1.Create another direct acces to VLC and change the name to "VLC YT" or something.
2. Right click on your new direct acces and click on preperties.
3. Go to the direct acces section, and find de Destiny text box.
4. The destiny should be these: "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe"
You habe to add: --preferred-resolution=240
And now it should look like these: "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --preferred-resolution=240

Report

1 year ago

mcq333

I'm pretty sure Jdonwloader just download the audio-file, I download just the audio in a few seconds, but the video take minutes(I downloaded two times, first the audio and after checking It is Ok, tried with the video). Anyway, modifying the direct acces on the desktop works fine(with 240 works awesome) so I'm using it for now, but maybe You can find a way in the future(I pray for it) and realese... "Youtube Music(Just music)"

If someone read this and is not sure of how to made the Direct Acces Method:
1.Create another direct acces to VLC and change the name to "VLC YT" or something.
2. Right click on your new direct acces and click on preperties.
3. Go to the direct acces section, and find de Destiny text box.
4. The destiny should be these: "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe"
You habe to add: --preferred-resolution=240
And now it should look like these: "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --preferred-resolution=240

Report

1 year ago

mcq333

I'm pretty sure Jdonwloader just download the audio-file, I download just the audio in a few seconds, but the video take minutes(I downloaded two times, first the audio and after checking It is Ok, tried with the video). Anyway, modifying the direct acces on the desktop works fine(with 240 works awesome) so I'm using it for now, but maybe You can find a way in the future(I pray for it) and realese... "Youtube Music(Just music)"

If someone read this and is not sure of how to made the Direct Acces Method:
1.Create another direct acces to VLC and change the name to "VLC YT" or something.
2. Right click on your new direct acces and click on preperties.
3. Go to the direct acces section, and find de Destiny text box.
4. The destiny should be these: "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe"
You habe to add: --preferred-resolution=240
And now it should look like these: "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --preferred-resolution=240

Report

1 year ago

mcq333

I'm pretty sure Jdonwloader just download the audio-file, I download just the audio in a few seconds, but the video take minutes(I downloaded two times, first the audio and after checking It is Ok, tried with the video). Anyway, modifying the direct acces on the desktop works fine(with 240 works awesome) so I'm using it for now, but maybe You can find a way in the future(I pray for it) and realese... "Youtube Music(Just music)"

If someone read this and is not sure of how to made the Direct Acces Method:
1.Create another direct acces to VLC and change the name to "VLC YT" or something.
2. Right click on your new direct acces and click on preperties.
3. Go to the direct acces section, and find de Destiny text box.
4. The destiny should be these: "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe"
You habe to add: --preferred-resolution=240
And now it should look like these: "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --preferred-resolution=240

Report

1 year ago

matx21

The parsing function in the script is not working with large(200+ videos) playlists.
I've changed the "if" statement at line 112 to this: http://pastebin.com/fgw8urRT and it seems to be parsing playlists of any size now.
I've never coded in Lua before so it my be not optimally written.

Report

1 year ago

dustball

As the topic already says. Now the plugin won't work anymore :/

Report

1 year ago

exebetche

I tried a fix, could you confirm it works now?

Report

1 year ago

dustball

Damn, you are quick! Yes it works :)

And here I am, with a half finished bash script to parse and enqueue playlists.. :D Thanks a lot.

Report

1 year ago

exebetche

XD cool, thanks

Report

1 year ago

jorvus

Works for me with vlc 2.0 8 twoflower
THX!

Report

1 year ago

vladravenholm

I guess youtube changed somehow? Because yesterday i was able to play my playlist, this morning though not so much. I opened messages in vlc and there's no stack trace or anything of the like, im sure lua is a pleasure to work in >.>

This is the error i get: "lua error: 1 6kLnKPWcS40" for every youtube playlist i input.

Report

1 year ago

vladravenholm

Oh i tested it on my laptop and pc, windows 7 & xubuntu.. if that matters. Fresh installs too.

Report

1 year ago

xistance69

Same here been messing with it for 45 mins trying to get it to work i thought it was just my computer

Report

1 year ago

MarioErmando

Same here, here's the error that shows up in the messages window with debug:

Quote:
function parse(): ...(x86)\VideoLAN\VLC\lua\playlist\playlist_youtube.lua:85: attempt to index field 'author' (a nil value)

Report

1 year ago

MarioErmando

AHA, I found a temporary fix for it!

- Navigate to the playlist folder (see the "INSTALLATION" section on the top

- Open the youtube playlist lua file in a text editor

- Search for "item.artist" (CTRL+F)

- Put "--~ " before "item.artist"
It should look like this:
--~ item.artist = video.author.CDATA

- Save the file

- Restart VLC

- And it should work!

Report

1 year ago

ufoasd

Thanks! Your fix Works!

ubuntu 12.04 VLC 2.0.8 Twoflower

Report

1 year ago

chisato

I have a playlist with 500+ songs and it does not get parsed correctly. Any ideas?

Report

1 year ago

chisato

Only parses the first 200 songs. Possible to parse all of them? <3

Report

1 year ago

chisato

Only parses the first 200 songs. Possible to parse all of them? <3

Report

1 year ago

exebetche

Could you give me the url of your playlist please? I've never seen a playlist with that much item in it so I can't do any tests.

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