
Youtube playlist
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
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.
5 years ago
- display clean video title and thumbnail
- Add support for playlist with 100+ videos
- fix change in youtube playslists
5 years ago
- display clean video title and thumbnail
- Add support for playlist with 100+ videos
- fix change in youtube playslists
gordoni
1 month ago
Report
adens
1 month ago
https://gist.github.com/seraku24/db42e0e418b2252f2136d2d7f1656be5
Report
titoir98
2 months ago
Report
jierr
3 months ago
Copy it here: C:\Users\\AppData\Roaming\vlc\lua\playlist
It is derived from the original file on github videolan/vlc.
https://github.com/videolan/vlc/blob/737a4bf18c771bc4f9d5b6ecd8bbcdbd035de07f/share/lua/playlist/youtube.lua
Report
seokjin
4 months ago
Report
kokokoshka
8 months ago
Report
kokokoshka
8 months ago
And another question: Is it should support 1080p videos or do you have a plan to bring it? Because I can play only 720p videos.
Report
eduardo-disorento
9 months ago
1) Go in the Application folder.
2) Right click on the VLC app and select « Show Package Contents ».
3) Go to Contents > MacOS > share > lua > playlist.
3) For security, copy the file « youtube.luac » and paste it in a backup folder on your desktop.
4) Delete the original file « youtube.luac » located in the « playlist » folder (path in step 1-2-3).
5) Download and place the file « youtube.lua » in the « playlist » folder by entering the following link in your search bar and pressing « cmd + s » once you see the long text : https://raw.githubusercontent.com/videolan/vlc/master/share/lua/playlist/youtube.lua
5.5) Make sure that it’s saved as « youtube.lua « and not « youtube.lua.txt ».
6) Download and place the file « 149909-playlist_youtube-vlc3patch.lua » in the « playlist » folder by clicking on « Download ZIP » here : https://gist.github.com/seraku24/db42e0e418b2252f2136d2d7f1656be5
7) Open VLC.
8) Go to File > Open File (or press « cmd + O »).
9) Paste the link of a YouTube Playlist that is either « Public » or « Unlisted » (Private doesn’t work).
10) Press the key « Enter » or « Return » (or click on « Open »).
Now everything should work properly with the following limits :
- A maximum of 200 videos can be loaded.
- Random playback skip a lot of videos without playing them at all.
If nothing works at all, quit VLC, delete the new files you added and put back the « youtube.luac » file in the playlist folder.
Since the Shuffle option of Youtube is broken, I wanted to use the Random Playback of VLC. But unfortunately, as I mentioned it before, this solution isn’t working.
Damn.
All the efforts just to face another wall…
I hope someone find a workaround…
Report
eduardo-disorento
9 months ago
Report
eduardo-disorento
9 months ago
Report
shortwavecereal
9 months ago
Report
albert66
11 months ago
Report
plgx
11 months ago
It actually works! It took a good half a minute, but I'm glad it does work!
Report
asafe
11 months ago
and string.match(vlc.path, "action_get_list") == nil
to the end of the file 149909-playlist_youtube.lua and it worked.
Report
znep666
1 year ago
Report
znep666
1 year ago
Worked perfectly for some time but since a few weeks the addon skips items in a playlist. Example: https://www.youtube.com/playlist?list=PLWlTX25IDqIzOkUyiEAIaN67YrKi5yEIN. The first three songs briefly show with their picture in the media information part of the playlist GUI but VLC immediately jumps to the next one and then starts playing the fourth. Same happens for most of the playlists which were working 100% OK a few weeks back.
My version is the addon + fix from hackpro.
Can someone please confirm and have a look whats causing this? Many Thanks!
Report
znep666
1 year ago
Report
vedarn
1 year ago
Report
vishvas
1 year ago
Report
vishvas
1 year ago
Report
pqekypk2
1 year ago
VLC for windows 1.0.8
64 bits
Report
brsyv
1 year ago
Report
thweiss
1 year ago
Successful Tests with the following Examples:
- Windows 10: VLC-Player Version 3.0.8 (64-Bit), no success with 3.0.7.1 (3-/64-Bit)
- Windows 7: VLC-Player Version 3.0.7.1 (32-Bit)
Report
rsod
1 year ago
Report
wu-wei
1 year ago
and string.match(vlc.path, "action_get_list") == nil
Report