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.
Last changelog:

1 year ago

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

kishoreiit49

4 years ago

Hi every one..I tried to open a URL in VLC. But I am getting the error that "Your input can't be opened:
VLC is unable to open the MRL 'http://www.youtube.com/watch?feature=player_detailpage&v=N7_EkrPJzqs'. Check the log for details. I tried to allow VLC through fire wall as well. Can any body help me out of this????????

Report

coolpoete

4 years ago

I'm not sure why I am having trouble with this, i tried following all directions. I'm on Win 7 64 Ultimate. When I look in the \program files\videolan\vlc\lua\playlist folder all the other files are .luac and per other posts here it says make sure it says .lua Also, when I save as from the browser it is saying its a txt document but all the other files are labled as "LUAC files". What I'm getting is that it will play the first video but not the entire playlist. Help please!

Report

aravindiitr

4 years ago

don't worry. I have solved your problem. Download the required .lua file from here :

http://knolzone.com/how-to-play-an-entire-youtube-playlist-in-your-vlc-player/

Report

DRL

4 years ago

When this addon is added to VLC, any new YouTube videos are imported in default 360p low quality. No matter which setting is specified in Settings -> Input/Codecs -> Preferred video resolution.
It even forces simple video links (not playlists) to be added in this low quality.
As soon as I remove this addon, everything becomes fine, and YouTube videos are imported in the highest resolution possible.

It would be awesome if you make your addon to respect this VLC setting and add videos in the corresponding quality.

Report

gomozan

4 years ago

Same problem. I guess the problem is "fmt" parameter, which is deprecated now. Tried to change it to "hd=1" but it didnt help at all.

fmt = get_url_param( vlc.path, "fmt" )
if fmt then
format = "&fmt=" .. fmt
else
format = ""
end

I really would love to use VLC for my youtube playlists instead of original youtube player - mainly because it has some issues with big playlists.

Report

snouts

4 years ago

Fantastic script, thank you so much.

One thing - there seems to be a maximum limit of videos this can import (80 or 90 I'd say, I'm not going to count exactly!). What can be done about the rest of the playlist past this cut?

For channels with say 100s of videos is there a way around this, either to import all, or to perhaps load the next 90-video chunk of a huge playlist?

Report

exebetche

4 years ago

I have to modify the script to check if there is more than 100 videos in the playlist and add them (youtube split long playlist's file in 100 videos chunk). It's easy but I don't have time to do it right now. I'll keep you posted.

Report

gb4lamc

4 years ago

Hi,
I installed and tried to use it for
http://www.youtube.com/watch?v=4S20kG2MoxI
but I got the error message
"lua error: Couldn't extract youtube video URL, please check for updates to this script"
If I ask for debug message, there was a
main debug: `http://www.youtube.com/watch?v=4S20kG2MoxI&list=PLadtk4pMQE4nV67PLmXQjw7G-AcV_ir8t' successfully opened
I tried this URL in a browser, it works. So what went wrong in the script preventing VLC 2.0.3 (running on Ubuntu) to open the video?

Report

exebetche

4 years ago

Hi,

Try this:
1) Check you have the last version of the script
2) Check that you haven't rename the file
So the path to the file should be
/usr/share/vlc/lua/playlist/149909-playlist_youtube3.lua
or
~/.local/share/vlc/lua/playlist/149909-playlist_youtube3.lua

3) Open the debug message panel (Ctrl+M), set verbosity level: 2, filter: lua
4) Try to load you're url again
5) Check in the debug message panel that you've a message like
lua debug: Lua playlist script %path_to_the_script%'s probe() function was successful
where %path_to_the_script% is the path to you're script -cf. 2)-

Report

exebetche

4 years ago

Also check your firewall config.

Report

gb4lamc

4 years ago

1) I have downloaded the script yesterday, so the version is the latest
2) I copied the file script to the path /usr/share/vlc/lua/playlist/149909-playlist_youtube3.lua which is intended to work for all users
3) Debug message list is long, I ommit the begining and here is the end of it:

lua debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/vimeo.luac
lua debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/youtube.luac
lua debug: Lua playlist script /usr/lib/vlc/lua/playlist/youtube.luac's probe() function was successful
lua debug: Trying Lua scripts in /home/gb4/.local/share/vlc/lua/meta/reader
lua debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
lua debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
lua error: Couldn't extract youtube video URL, please check for updates to this script

It shows that it found a youtube.luac elsewhere (in /usr/lib/vlc/lua/playlist/) and does'nt seem to search in /usr/share/vlc/lua/playlist at all (no idea why).

Therefore, I copied your script into my ~/.local/share/vlc/lua/playlist/

And then it worked fine for me. Alleluia.

I wonder if placing the script in /usr/lib/vlc/lua/playlist would be something valid. Do you want me to try it, so that you could update, not the script, but the installation instructions?

Report

exebetche

4 years ago

I check myself, being also a ubuntu user and you're right vlc doesn't check /usr/share/vlc/lua anymore. So I updated the installation instructions as you say.
Thank's a lot for the info!

Report

equiman

4 years ago

I update the add on... but steel don't working.

I'm trying with diferent URL Playlist combinations, but with no one works.

https://www.youtube.com/playlist?list=PLrDTf5qnZdEBBDm9Zh7gEZ1vNB_o3yK5G&feature=view_all

https://www.youtube.com/playlist?list=PLrDTf5qnZdEBBDm9Zh7gEZ1vNB_o3yK5G

https://www.youtube.com/watch?v=Ck3MuHqYRLM&list=PLrDTf5qnZdEBBDm9Zh7gEZ1vNB_o3yK5G&feature=plpp_play_all

Note: Sorry, my english isn't very good.

I'm using Windows 7 and VLC 2.0.4 Twoflower

Report

exebetche

4 years ago

Those url work fine for me.

Try to remove the "s" in "https://" I read it worked for some people:
http://www.youtube.com/playlist?list=PLrDTf5qnZdEBBDm9Zh7gEZ1vNB_o3yK5G&feature=view_all

Report

exebetche

4 years ago

Also check that you didn't renamed the file, it should be:
149909-playlist_youtube3.lua

Report

equiman

4 years ago

Ready!!! Now It's Working ;)

Report

exebetche

4 years ago

What have you done to make it work?

Report

equiman

4 years ago

Remove the "s" on https and renaming the addon exactlly to 149909-playlist_youtube3.lua

http://www.youtube.com/playlist?list=PLrDTf5qnZdEBBDm9Zh7gEZ1vNB_o3yK5G&feature=view_all

The better thing is that I can "stay on top" VLC and can have a little window while I'm working.

Thanks!!!!

Report

exebetche

4 years ago

Report

equiman

4 years ago

I made a post with instructions (in Spanish)

http://equimantux.blogspot.com/2012/11/importar-playlist-de-youtube-vlc-mini.html

Thanks!!! for you Work with this plugin!!!

Report

buralex

4 years ago

@exebetche:
just updated to latest 2.0.4
Here is a sample playlist that does not work:
http://www.youtube.com/watch?v=-7JVxE2SYxo&list=PL38E9705F5F68D3D0&feature=plpp_play_all
It seems to just flash between the VLC icon and a thumbnail of the video (or at least that's what it looks like) while the title bar alternates between displaying a URL and a title of one of the items in the playlist.

.... later ... fails on WinXP SP-3 (as above) but works perfectly on Win-7 SP1.
Can you or anyone else duplicate this finding?
Maybe the lua script needs a tweak?

Comment copied from my comments on GHacks thread of 28-Nov-2012

Report

exebetche

4 years ago

@you
I've updated my script, your playlist work fine with the current version which you have if you download it from here ("download" button).
You should ask the poster at ghacks.net to indicate this url (http://addons.videolan.org/content/show.php/+Youtube+video+and+playlist+importer?content=149909) instead of the direct link to a version of the script. That way everybody can acces the latest version.
As a matter of fact I'm working on improvements right now, so.

Thanks for making me listen Janis Joplin, it brings back a lot of good memory :)

Regards,

Report

buralex

4 years ago

@exebetche:
just updated to latest 2.0.4
Here is a sample playlist that does not work:
http://www.youtube.com/watch?v=-7JVxE2SYxo&list=PL38E9705F5F68D3D0&feature=plpp_play_all
It seems to just flash between the VLC icon and a thumbnail of the video (or at least that's what it looks like) while the title bar alternates between displaying a URL and a title of one of the items in the playlist.

.... later ... fails on WinXP SP-3 (as above) but works perfectly on Win-7 SP1.
Can you or anyone else duplicate this finding?
Maybe the lua script needs a tweak?

Comment copied from my comments on GHacks thread of 28-Nov-2012

Report

buralex

4 years ago

sorry for duplicate post - I didn't think it had saved and can't see a way to delete the dup.

Report

coolpoete

4 years ago

I'm not sure why I am having trouble with this, i tried following all directions. I'm on Win 7 64 Ultimate. When I look in the \program files\videolan\vlc\lua\playlist folder all the other files are .luac and per other posts here it says make sure it says .lua Also, when I save as from the browser it is saying its a txt document but all the other files are labled as "LUAC files". What I'm getting is that it will play the first video but not the entire playlist. Help please!

Report

1 year ago

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

Filename Version Description Filetype Packagetype License Downloads Date Filesize Install
Score 80%
80.00 Likes
20 Dislikes
Details
version
updated Aug 22 2015
added Apr 04 2012
downloads
page views 68064