exebetche / vlsub

VLC extension to download subtitles from opensubtitles.org
1.34k stars 346 forks source link

Save subs in a different directory? #185

Open eliluong opened 7 years ago

eliluong commented 7 years ago

Would you be able to implement an option (or show where to change in the code) to save downloaded subtitles in a different directory? Currently, the subtitle is downloaded to the same directory as the video file. Thank you.

exebetche commented 7 years ago

You have to change the variable "target" in the function "download_subtitles" at line 1802 : https://github.com/exebetche/vlsub/blob/master/vlsub.lua#L1802

eliluong commented 7 years ago

Thanks. I changed it to

local target = "C:\\subtitles\\"..subfileName

This works if the video file is extracted, ie not inside an archive. If the video is inside an archive, vlsub does not load. Can you direct me where to change the code, or is pulling subtitles for an archive more involved? The current behavior is place the subtitle in the same directory as the archived files.

ThatLurker commented 7 years ago

Not sure if this is any help #184

elisim commented 5 years ago

vlsub is now part of vlc. How can I do it from vlc?