Youtube-lua-updater
Updates the youtube lua file for playing youtube videos over VLC player in Windows and Linux.
Python version: >= 3.6 (due to the usage of f-strings)
The algorithm is the following:
- Determines your OS (Windows and Linux friendly)
- Looks for the location of the lua file in your OS.
- Downloads the last available youtube.lua file at https://raw.githubusercontent.com/videolan/vlc/master/share/lua/playlist/youtube.lua
- Replaces the original local file with the freshly downloaded one.
- Deletes the temporary lua file in your current working directory.
Notes:
- Windows users have to run the script under the administrator right to be able to rewrite the local file.
- Linux users will be prompted to enter their root password to overwrite the file if they are not under the root privileges.