

Youtube playlist importer for VLC media player 1.1 and 2.0 It always logs success of subtitles though there is not a trace of subtitles anywhere. Also "lua/extensions/" is created if an extension is installed through the Addons manager. Somehow VLSub creates the dir if it is used/activated. "/lua/extensions/userdata/" dir does not exist by default. else error message for the user to check/create paths or something in the settings dialog box". Save() function could also contain condition "if conffile then. "()" can be replaced with an existing writable dir path ("D:\YTSubDownload").Ĭlose() and deactivate() functions could be empty (dlg:delete() is not needed there). without non-ASCII characters in the path like "D:\YTSubDownload" (Create the folder manually) -Ĭode: Select all 151> return "00:00:00,000" ġ55> secs = string.format("%06.3f", (seconds - hours*3600 - mins *60)):gsub("%.",",") Īs the script does not use "vlc.io" (available since VLC-3.0.2) insead of standard Lua's "io", it will not work for some users on Windows (problem with non-ASCII characters in the path, a user name). You can replace () with a custom writable dir. EDIT ( by mederi): how to mod "a" v0.2 script instead of "a" v0.1. It seems that the script downloads subtitles in XML format according to specified language code, then converts&saves them as a SRT subtitle file and then loads it in a playing video. Then the loaded subtitles appear in a playing video and in VLC menu (Subtitle > Sub Track > ). The dialog box disappears but the script remains active in VLC menu. I had to set "en-US" language code (how should an ordinary user know it?) for the provided video in the dialog box of the activated extension (no video playing in VLC yet). The script just contains some bugs, but after fixing mainly storage/working paths it really works. It really works with the provided youtube video: I have just tried the VLC Extension: YTSubDownload

"Soft" subtitles are separate streams and you can enable/disable them whenever you want. If the subtitles are hardcoded in the video, then you cannot turn them off.
