Skip to content

[feature] Read hearing_impaired from v2 subtitle tracks instead of guessing from the title #568

Open

Description

@blurbery

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:

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

  1. added
    api-v2
    bug
    impact: polish
    priority: P2
    on Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-v2bugimpact: polishpriority: P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions