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:
- display clean video title and thumbnail - Add support for playlist with 100+ videos - fix change in youtube playslists
2020-09-28 Fixed version *with* playlist parsing can be found here: https://pastebin.com/4GEMSy9w
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
For me, it works only with a single video and completely doesn't want to work with playlists. I have tried /playlist URLs, /watch URLs with list parameter but no luck. What I'm doing wrong?
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.
Here's a CLEAR explanation of how it worked for me on Mac OS High Sierra :
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…
After redownloading and using the new script all it does is either leave it blank or have the videos play one by one without actually playing anything. As in itll show the title for a fraction of a second and then move on and it goes on until the playlist ends.
10 youtube.lua runs immediately. Also i had to create: Windows (current user): %APPDATA%vlc\lua\playlist (nothiing there after some ugrades) and add it there.
Hello,
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!
Ratings & Comments
359 Comments
1 1 ugh, buffering, lag, not working for playlist
9 9 excellent
10 Function to tune Digital TV with capture card
Found any alternatives?
YouTube playlist plugin does not work
YouTube playlist plugin does not work
YouTube playlist plugin does not work
It's a great player, but it doesn't have support for playing / tuning digital TV or a YouTube playlist
1 The dozens solutions point to this and another source of this exact script. Neither works on 64-bit version of VLC
try this with 3.x version. worked on 3.0.11 https://gist.github.com/seraku24/db42e0e418b2252f2136d2d7f1656be5
1 don't work tested 3 differents lua and just 90% of my playlist is skiped and i don't know why
2020-09-28 Fixed version *with* playlist parsing can be found here: https://pastebin.com/4GEMSy9w 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
9 It worked! Thank you very much.
9 9 excellent
For me, it works only with a single video and completely doesn't want to work with playlists. I have tried /playlist URLs, /watch URLs with list parameter but no luck. What I'm doing wrong? 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.
Here's a CLEAR explanation of how it worked for me on Mac OS High Sierra : 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…
The second step 3 should be step 3.5, sorry.
And I forgot to say I use the version 3.0.8 of VLC haha
After redownloading and using the new script all it does is either leave it blank or have the videos play one by one without actually playing anything. As in itll show the title for a fraction of a second and then move on and it goes on until the playlist ends.
10 youtube.lua runs immediately. Also i had to create: Windows (current user): %APPDATA%vlc\lua\playlist (nothiing there after some ugrades) and add it there.
10 10 the best It actually works! It took a good half a minute, but I'm glad it does work!
I had to add the code and string.match(vlc.path, "action_get_list") == nil to the end of the file 149909-playlist_youtube.lua and it worked.
10 10 the best
Hello, 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!
Ok found it - requires the very latest youtube.lua listed above under "Troubleshooting". Now everything works again!