Manual choices win, manual Off is kept distinct from the untouched default, nothing is saved and the setting is untouched. Booking fingerprints identical to 0.99.15. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
3.7 KiB
3.7 KiB
Orbit TV 0.99.16: automatic English subtitles (Stage D2)
Paul approved building this on 4 November 2026 at 15:28. Installing it needs its own approval. The change is to playback's subtitle choice only. Scheduling, plans, cursors, pools and presentation are unchanged.
What's in it
subtitleChoice(WatchingControls.kt) decides the subtitle track each programme opens with:- A choice the viewer made in this visit wins: a language, or Off.
- Otherwise the subtitles setting applies, as before: English where there's some, when the setting is on.
- Otherwise, the new rule: a programme whose sound is all tagged as other languages opens with English subtitles, if it has an English track. Japanese-only anime such as Beerus is the case in point.
- Untagged or "und" sound gets the benefit of the doubt and stays as before.
- A programme with no English track gets no subtitles, so no foreign track appears unasked.
- Off by hand is now different from never chosen. Choosing Off in the subtitles and audio panel saves
SUBTITLES_OFFfor the visit, not "nothing". It keeps subtitles off, including on Beerus. The untouched default, with the setting off, is still "nothing", so the automatic rule can apply. - Nothing is saved by the automatic choice.
- It picks a track for that programme only. The next programme, after a changeover or a channel change, decides afresh.
- The global subtitles setting is never changed.
- A visit (watching full screen) starts from the setting, as before. Leaving full screen and coming back starts again from the setting, so a manual choice lasts for the visit, as it does today.
- Both paths use the rule: a programme opened directly, and one handed over from the picture on the main screen.
- The 0.99.15 playback test now starts from the subtitles setting, as a channel does, so it tests what a viewer would actually get.
- Version: 0.99.16 (versionCode 146).
Checks before install
- 449 unit tests pass (2 skipped: hand-run replays that need input files). Lint has no errors.
- Five new tests in AutoSubtitlesTest:
- Beerus (Japanese sound; English, Portuguese, Spanish and an external English track, as the box read them) opens with English with the setting off, whatever the track order.
- English programmes are unchanged: no subtitles with the setting off, English with it on. Beerus also gets English with it on.
- Untagged or "und" sound, a mix including an untagged track, and Japanese with no English track all stay without subtitles.
- Manual choices win: Off keeps Beerus without subtitles, and a chosen language is kept.
- Programme change, channel change and restart:
- Beerus gets English.
- The next English programme gets none, because nothing carried over and nothing was saved.
- A change to another Japanese-only channel gets English again.
- Manual Off stays off for the rest of the visit.
- A restart is a new visit, and Beerus gets English again.
- With the setting on, everything is as before.
- Booking fingerprints: the four-week replay of all 30 channels on 0.99.16 is identical to 0.99.15 on every channel (docs/replays/replay-fingerprints-0.99.16.txt).
On the box after install (proposed)
Run with the TV idle and Paul watching. Paul's subtitles setting is off.
- Beerus: the playback test on episode 1 (8016755) should show English selected and subtitle lines produced.
- An English-language episode: the playback test on one should show none selected.
- Ordinary viewing: a channel change and a programme changeover with no subtitle surprises.
These need Paul's eyes as well as the log.
Rollback
Install 0.99.15. A manual Off saved during a visit lives only in memory, so nothing persists.