Repository navigation
Description
Problem
The server sends hearing_impaired on every subtitle track in the v2 item detail (versions[].subtitle_tracks[]), but the Android catalog model doesn't read it. SubtitleTrack in shared/.../model/catalog/CatalogModels.kt has no such field, so the TV detail screen decides whether a track is SDH from its title alone (isHearingImpairedSubtitle in TvPlaybackFormatting.kt, which calls subtitleLabelIndicatesHearingImpaired with the cc|sdh token regex).
That misses hearing-impaired tracks whose title doesn't contain cc or sdh:
- Embedded tracks that carry the hearing-impaired disposition but have a plain title such as
English. - After feat(scanner): read sidecar subtitle languages in any position and flag SDH tracks silo-server#2432, sidecar files named like
Movie.en.hi.srt. The server now stores those as English and hearing-impaired (Jellyfin's naming rule), but their title is still the file name, and Android deliberately doesn't treathias an SDH word because it is also the Hindi code.
On those tracks the detail screen shows no SDH badge, and the detail ranking can put the hearing-impaired track ahead of the plain one. Apple already reads the field (APIv2CatalogReadModels.swift), and the web app does too.
Device
Android TV / Google TV
Current workaround
Rename the sidecar to use sdh or cc instead of hi, or remux the subtitle with SDH in its title. Neither helps embedded tracks that only carry the disposition.
Proposed behavior
Decode hearing_impaired into the catalog SubtitleTrack and use it in the detail ranking and badges, keeping the title check as a fallback for older servers. The phone detail and pre-play paths may have the same gap and are worth checking too.
Alternatives considered
Adding hi to the title regex would mislabel Hindi tracks, which is why subtitleValueLabel_hindiCodeDoesNotAddHearingImpairedBadge exists. The server's flag already resolves that case.
AI harness
Claude Code (Claude desktop app)
AI tool(s)
Claude Code
AI model(s)
claude-opus-5-5
AI involvement
AI-assisted
Independent or adversarial review
n/a. Found while reading the Android sources on main for silo-server#2432; I haven't reproduced it on a device.
Confirmations
- I searched open and closed issues, including ones closed as not planned, and this is not already requested
- This is not one of Silo's non-goals
Activity