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

26
Score 85.3%
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:

4 years ago

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

C

exebetche

5 years ago

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

Which I did (line 62).

Report

C

exebetche

5 years ago

Which I did (line 62).

Report

joshtrneny2

5 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

nickeox

6 years ago

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

C

exebetche

6 years ago

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

axmiha

6 years ago

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

Report

Shurikmacedon

5 years ago

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

axmiha

6 years ago

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

axmiha

6 years ago

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

axmiha

6 years ago

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

kanape

6 years ago

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

Not work

Try add this lua, but nothing

Report

9

cipricus

6 years ago

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

xmen1111

6 years ago

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

Report

C

exebetche

6 years ago

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

Report

Kashimus

6 years ago

With vlc 2.0.8 youtube playlist playing wont work(playlist_youtube.lua) tried all the trouble shooting,
the single video playing works (youtube.luac)

Report

Kashimus

6 years ago

Okay its working for me too,

Report

9

DevilinPixy

6 years ago

When trying to play a single YouTube video from a playlist in VLC it will default to load the full YouTube playlist. Basically whenever the video I try to add comes from a playlist it will always play the full playlist instead of the single video.

I made an edit to the playlist_youtube.lua to fix this. The regex used is trying to match "list=" within the url. So it will match a playlist even when the actual url links to a single video within a playlist.

Example:
http://www.youtube.com/watch?v=<video ID>&list=<playlist ID> (single video)
http://www.youtube.com/playlist?list=<playlist ID> (full playlist)

Now by changing the regex which is used twice in the LUA code (function probe() and function parse() at the top) from "list=" to "?list=" this solved the problem for me.

Now I can play a single video that comes from a playlist with the first example and play a full list with the second example since the regex does not match for the first example and will not load the full playlist.

Might be useful if the code can be updated to prevent full playlists from being loaded when referring to a single video within a playlist.

Report

9

DevilinPixy

6 years ago

Forgot to say: Good job on this addon though, truly love it :)

Report

MarcusLO

6 years ago

Update it please for the newest version. I enter any kind of playlist and even remove the s from https so I don't get the error. After that VLC just skips through every song without even playing a second of them or load anything.

Report

C

exebetche

6 years ago

The problem don't come with this extension, it just retrieve the playlist, not the video. Maybe you have a version of Vlc that not include the script to get the video. You can get it from here:
https://raw.github.com/videolan/vlc/master/share/lua/playlist/youtube.lua
Just install it like you did for this one.

Report

vlcaddonsrule

6 years ago

Works great! Is there any way to modify the Addon to only include the 20 (or any number) most recent videos that have been added? Or only the videos that have been added in the last day? I'm trying to create a shortcut for news played through VLC, and don't want to include old news.

Thank You!

Report

C

exebetche

6 years ago

Hi

You could do something like this but I didn't test it:


for i, video in ipairs(playlist_parsed) do
if os.time ()-video.time_created < 24*3600 then
local item = {}
item.path = "http://www.youtube.com/watch?v="..video.encrypted_id.CDATA
item.title = video.title.CDATA
item.artist = video.author.CDATA
item.arturl = video.thumbnail.CDATA
table.insert (p, item)
end

end

Report

C

exebetche

6 years ago

Or rather:
if os.time ()-video.time_created.CDATA < 24*3600 then ...

Report

vlcaddonsrule

6 years ago

This is awesome - thank you so much!

Report

C

exebetche

6 years ago

Cool

Report

4 years ago

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

12345678910
11483
product-maker brsyv Oct 22 2019 10 the best
10 the best
product-maker wu-wei Oct 09 2019 10 the best
10 the best In VLC 3.0.7.1 I have to use the fix of hackpro and to add at the end of line 44 the following validation and string.match(vlc.path, "action_get_list") == nil
product-maker japaalnev Sep 28 2019 10 the best
10 the best
product-maker quickfix41 Sep 22 2019 1 ugh
doesn't work under linux after trying variations of all paths as well as the alleged fix
product-maker hamza-mostakim Sep 10 2019 9 excellent
9 excellent
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 Base: 4 x 5.0 Ratings
Be the first to comment
hamza-mostakim
Sep 10 2019
hpapa
Sep 06 2019
joaorenno
Sep 03 2019
kurohai
Apr 22 2019
kameyo
Jan 28 2019
xyz555
Oct 10 2018
dokuganryu
Oct 07 2018
CJOR
Aug 29 2018
arnoldwaswaiga
May 19 2018
sesiu
Feb 28 2018
mehdih
Nov 12 2015
s1ckb0y
Oct 21 2015
Doyouknow
Jul 31 2014
Argyle
May 13 2013
ringen00
Mar 28 2013
gericom
Jan 09 2013
HATRED
Jan 09 2013
gomozan
Dec 17 2012
gb4lamc
Dec 03 2012
equiman
Nov 30 2012
tonysilva
Nov 27 2012
btocher
Nov 27 2012
sirhcits
Nov 25 2012
allig8or
Nov 22 2012
meow9th
Nov 19 2012
FracExebetche
Apr 23 2012
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
updated Sep 05 2017
added Apr 04 2012
downloads 24h
39
mediaviews 24h 0
pageviews 24h 377
System Tags addon