mpv only turns on a subtitle that is flagged default or matches slang, so releases like VisionQuest (Russian dub by default, ru/ru/en subtitles, none flagged) open with subtitles off, which also disabled Translate subtitle.
New TrackSelection helpers in qtpotato_core with unit tests.
On file load: audio follows Preferred languages (Playback settings); subtitle follows Preferred languages (Subtitles settings), else keeps mpv's choice, else (new Turn on a subtitle when none matches, on by default) picks a full text subtitle in the system language, then English, then the audio language, then the default/first track.
Translate is enabled whenever the file has a text subtitle; with none or a bitmap subtitle shown it translates the best text track (English first).
Verified in the real app on VisionQuest S01E01: subtitle 3 (en) is selected on open; with audio set to en and auto-select off, audio switches to track 7, subtitle stays off and Translate stays enabled with the English source.
Closes #7
mpv only turns on a subtitle that is flagged default or matches `slang`, so releases like VisionQuest (Russian dub by default, ru/ru/en subtitles, none flagged) open with subtitles off, which also disabled **Translate subtitle**.
- New `TrackSelection` helpers in `qtpotato_core` with unit tests.
- On file load: audio follows *Preferred languages* (Playback settings); subtitle follows *Preferred languages* (Subtitles settings), else keeps mpv's choice, else (new *Turn on a subtitle when none matches*, on by default) picks a full text subtitle in the system language, then English, then the audio language, then the default/first track.
- Translate is enabled whenever the file has a text subtitle; with none or a bitmap subtitle shown it translates the best text track (English first).
Verified in the real app on VisionQuest S01E01: subtitle 3 (en) is selected on open; with audio set to `en` and auto-select off, audio switches to track 7, subtitle stays off and Translate stays enabled with the English source.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #7
mpv only turns on a subtitle that is flagged default or matches
slang, so releases like VisionQuest (Russian dub by default, ru/ru/en subtitles, none flagged) open with subtitles off, which also disabled Translate subtitle.TrackSelectionhelpers inqtpotato_corewith unit tests.Verified in the real app on VisionQuest S01E01: subtitle 3 (en) is selected on open; with audio set to
enand auto-select off, audio switches to track 7, subtitle stays off and Translate stays enabled with the English source.