davidde / mpv-autosub

Fully automatic subtitle downloading for the MPV media player
https://mpv.io/
MIT License
295 stars 42 forks source link

can't override subtitle track with local mpv.conf #32

Open tastytea opened 2 years ago

tastytea commented 2 years ago

I sometimes use a directory-local mpv.conf (use-filedir-conf) to force a subtitle track, in this case the local mpv.conf contains sid=2. Without mpv-autosub it works but when the plugin is loaded the default (or the first?) track is always selected.

Is it possible to have the plugin respect the configuration?

mpv log ``` [autosub] Reactivate external subtitle files: Track list: (+) Video --vid=1 (*) (hevc 1920x1080 23.976fps) Video --vid=2 [P] 'cover.jpg' (mjpeg) Audio --aid=1 --alang=eng (*) 'Stereo - ENG (AAC)' (aac 2ch 48000Hz) (+) Audio --aid=2 --alang=jpn 'Stereo - JPN (AAC)' (aac 2ch 48000Hz) Subs --sid=1 --slang=eng (*) 'Signs - ENG (ASS)' (ass) (+) Subs --sid=2 --slang=eng 'Dialog - ENG (ASS)' (ass) [autosub] No German subtitles were detected [autosub] => Proceeding to download: [autosub] Searching German subtitles ... AO: [pulse] 48000Hz stereo 2ch float VO: [gpu] 1920x1080 yuv420p10 [autosub] No German subtitles found [autosub] Track switched: (+) Video --vid=1 (*) (hevc 1920x1080 23.976fps) Video --vid=2 [P] 'cover.jpg' (mjpeg) Audio --aid=1 --alang=eng (*) 'Stereo - ENG (AAC)' (aac 2ch 48000Hz) (+) Audio --aid=2 --alang=jpn 'Stereo - JPN (AAC)' (aac 2ch 48000Hz) (+) Subs --sid=1 --slang=eng (*) 'Signs - ENG (ASS)' (ass) Subs --sid=2 --slang=eng 'Dialog - ENG (ASS)' (ass) [autosub] Enabled English embedded subtitles! [autosub] => NOT downloading new subtitles ```