Youtube playlist

VLC Playlist Parsers

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

23
Score 85.8%
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%VideoLANVLCluaplaylist
* Windows (current user): %APPDATA%vlcluaplaylist
* 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 FilesVideoLANVLCluaplaylistyoutube.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:

7 years ago

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

ringen00

6 years ago

ahh - great it works again thanks!!

Report

ringen00

6 years ago

the start pictures are running through!
not one video is played!

Report

imusgr

6 years ago

that's right does not work anymore.
Hope some one will fix it soon.

best Regards

Report

Silberling

6 years ago

Hi.

This script above overrides the default vlc youtube "single-video" script. This is the reason why the video resolution is so low.
I dropped all of the code except that is neccessary for the list parsing.

Now you can import lists and the best possible video resolution is picked by the default youtube handler.

http://pastebin.com/XC7wdCfr

Hope this helps somebody

Kai

Report

kishoreiit49

6 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

gomozan

6 years ago

You're awesome!
Thank You

Report

thinking-aloud

6 years ago

hello,
I encountered a few problems and like to share how I fixed them with the 5 point debuging info on page 2 by exebetche. I am using Fedora 17 Linux x64 and VLC 2.0.5
I got an error that the "function descriptor()" is missing, so I opened the .lua file and inserted it below the initial comment:

function descriptor()
return {
title = "Youtube playlist importer";
version = "1.0";
author = "exebetche";
url = 'http://addons.videolan.org/content/show.php?content=149909';
description = "This VLC extension lets you import playlists from YouTube.";
capabilities = {"input-listener"} }
end

Here is a direct download with my version of the file: http://www.share-online.biz/dl/WD83LZFMP9A6


I also put the file in the "/lua/extensions/" folder and not the "/lua/playlist" folder.

Ps. I hope this helps


Greetings Lennart

Report

kishoreiit49

6 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

kishoreiit49

6 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

thinking-aloud

6 years ago

lua warning: Error while running script /usr/share/vlc/lua/extensions/playlist_youtube.lua, function activate() not found

grr, this is still not working, but I don't have time now.

Report

kerkain

6 years ago

I can get it to play the playlist all the way through but it doesn't play it in the best selected quality. It seems to default all the way into 240 or 360p instead of 720 even though its available.

I've put the .lua file into the %appdata% folder and even tried putting it in the program files x86 vlc lua playlists folder with a .luac extension and still gives me the poor quality.

If I remove the .lua completely then VLC will play in 720p without a hitch.

Is there a fix for this or something else I can try?

Report

Horizon

6 years ago

I face the same problem although the locked resolution is 480. is there a workaround or updated script?
WIth my native display at 1440x900 anything below 720 looks like Minecraft.


Running VLC 2.0.5 on a Macbook pro.

Report

Horizon

6 years ago

A workaround for full resolution. Disable playlist addon (just add .dead after .lua) Extract urls from youtube playlist by using an extension/plugin of your choice (I used link clump for chrome and set to copy urls to clipboard) open text document, write #EXTM3U on the first row and then enter and paste the video urls, save as M3U. Now you have a complete playlist that will play in highest resolution, although you have completely circumvented this lua-script.

Sorry but this is the only thing I have found that works until this script is updated.

Report

panosmdma

6 years ago

I just register here to thank you!!!
(System Fedora 17 x64)

Report

aravindiitr

6 years ago

saving this file as "all files" didn't work. You can download the proper .lua file from this link here :

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

enjoy!!

Report

kishoreiit49

6 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

6 years ago

Thank you, but using a download manager helped me to save the file correctly.

Report

coolpoete

6 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

6 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

6 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

6 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

6 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

C

exebetche

6 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

6 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

C

exebetche

6 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

7 years ago

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

12345678910
147
product-maker ahmedpop910 Mar 16 2019 9 excellent
+
product-maker kameyo Jan 28 2019 9 excellent
+
product-maker undeadmockingbird Aug 18 2018 9 excellent
+
product-maker tml3nr Nov 05 2017 9 excellent
product-maker aliali2017 Sep 05 2017 9 excellent
product-maker gotekus Aug 11 2017 9 excellent
Excellent
product-maker latiosFR Jul 25 2017 9 excellent
product-maker LittleLizzy May 28 2017 9 excellent
product-maker ELKZ Apr 29 2017 9 excellent
product-maker DarkPhoenix1337 Apr 10 2017 9 excellent
product-maker Stretch Dec 27 2016 9 excellent
product-maker dwmed Dec 05 2016 9 excellent
product-maker BB20101997 Sep 24 2016 9 excellent
product-maker Ragiowan Nov 09 2015 9 excellent
product-maker mcq333 Sep 17 2015 9 excellent
product-maker 99lool May 31 2015 9 excellent
product-maker 9207771739 May 01 2015 9 excellent
product-maker DJXAKEP Apr 25 2015 9 excellent
product-maker ziki Apr 21 2015 9 excellent
product-maker dirtyharry85 Apr 09 2015 9 excellent
product-maker EscapeFromReality Mar 03 2015 9 excellent
product-maker tomaszek197871 Oct 29 2014 9 excellent
product-maker gogo57540 Sep 08 2014 9 excellent
product-maker Doyouknow Jul 31 2014 9 excellent
product-maker rezmen1777 Apr 24 2014 9 excellent
product-maker ktb007 Apr 21 2014 9 excellent
product-maker Attila13 Apr 16 2014 3 bad
product-maker pereov33 Jan 17 2014 9 excellent
product-maker csuno Nov 27 2013 9 excellent
product-maker DFPOWER46 Nov 18 2013 9 excellent
product-maker Snapafun Aug 29 2013 9 excellent
product-maker DevilinPixy Aug 24 2013 9 excellent
product-maker BurakPatat Aug 03 2013 9 excellent
product-maker GuixLe Jul 25 2013 9 excellent
product-maker legluondunet Jul 07 2013 9 excellent
product-maker cipricus May 17 2013 9 excellent
product-maker Argyle May 13 2013 9 excellent
product-maker ufoasd Apr 10 2013 9 excellent
product-maker ringen00 Apr 04 2013 9 excellent
product-maker zequi Feb 12 2013 9 excellent
product-maker HATRED Jan 09 2013 9 excellent
product-maker equiman Nov 30 2012 9 excellent
product-maker btocher Nov 27 2012 9 excellent
product-maker hernansilva Nov 26 2012 9 excellent
product-maker erosenninrho Nov 26 2012 9 excellent
product-maker sirhcits Nov 25 2012 9 excellent
product-maker meow9th Nov 19 2012 9 excellent
product-maker FracExebetche Apr 23 2012 9 excellent
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
updated Sep 05 2017
added Apr 04 2012
downloads today
56
page views today 351
System Tags addon