Skip to content

Add languages config as a script-opt? #46

@edgar-vincent

Description

@edgar-vincent

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions