2

everything I see here on this topic is 5 years or more old. Running ubuntu 18.04 and youtube.lua does not exist when I run the parser to update it. I had downloaded 3 videos and then vlc stopped playing or downloading

hines@hines-Vostro-260:~$ sudo apt-get install curl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
curl is already the newest version (7.58.0-2ubuntu3.8).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
hines@hines-Vostro-260:~$ sudo rm /usr/lib/vlc/lua/playlist/youtube
rm: cannot remove '/usr/lib/vlc/lua/playlist/youtube': No such file or directory
hines@hines-Vostro-260:~$ sudo curl "http://git.videolan.org/p=vlc.git;a=blob_plain;f=share/lua/playlist/youtube.lua;hb=HEAD" -o /usr/lib/vlc/lua/playlist/youtube.lua
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Failed to create the file /usr/lib/vlc/lua/playlist/youtube.lua: No 
Warning: such file or directory
100   153  100   153    0     0    320      0 --:--:-- --:--:-- --:--:--   320
curl: (23) Failed writing body (0 != 153)
Pilot6
  • 92,041

1 Answers1

2

The paths have changed. This is what I did.

  1. Get the latest file from VLC's github, for example:

    wget https://raw.githubusercontent.com/videolan/vlc/master/share/lua/playlist/youtube.lua
    
  2. Then copy it to the location where those files now live:

    sudo cp youtube.lua /usr/lib/x86_64-linux-gnu/vlc/lua/playlist
    

    If unsure about the location in your distribution (it could be another architecture for example), you can do:

    $ dpkg -L vlc-plugin-base | grep youtube.lua
    /usr/lib/x86_64-linux-gnu/vlc/lua/playlist/youtube.luac
    

Note that you might find a youtube.luac precompiled file (not .lua), but the .lua you are going to copy will take precedence. You can remove youtube.luac if you want.