mpv-autosub icon indicating copy to clipboard operation
mpv-autosub copied to clipboard

Add languages config as a script-opt?

Open edgar-vincent opened this issue 1 year ago • 2 comments

Hi,

Thanks a lot for this script. I'm not very familiar with mpv scripts in general, so please excuse me if my question sounds silly.

Would it be possible to configure the subtitle language without editing the script file, but by editing a separate configuration file or by using mpv's --script-opts argument?

I use this script in a packaged form, so I can't edit autosub.lua directly. Instead, I generally use ~/.config/mpv/script-opts/foobar.lua. I suppose this could also be useful to users who link their ~/.config/mpv/scripts/autosub.lua file to a local copy of the git repo, which would allow them to easily update it by pulling the latest commits.

Thanks!

EV

edgar-vincent avatar Jan 10 '25 00:01 edgar-vincent

came here to request the same functionality. Seems like its is covered by https://github.com/davidde/mpv-autosub/pull/47

teto avatar May 04 '25 00:05 teto

seems like one can configure https://subliminal.readthedocs.io/en/latest/ directly as well

teto avatar May 04 '25 01:05 teto