Repository navigation
Description
What happened
On Android TV, the in-player Subtitles menu lists each embedded text track that is not selected twice. A direct-play MKV with two embedded SubRip tracks (English, Spanish) shows three or four rows instead of two: with English selected, Spanish appears twice; with subtitles off, English and Spanish each appear twice. One of the two rows carries the server's details (for example "English (SDH) · SRT · Default") and the other the player's own label (for example "English" with an SDH badge).
Steps to reproduce
- On a Silo dev deployment, add a movie library containing an MKV with English audio and two embedded SubRip tracks: "English (SDH)" and "Spanish".
- Play it on the Android TV app (debug build of
mainat 238134a, Android TV emulator, Android 16). - Open the player's Subtitles tab.
Expected behavior
Each subtitle track appears once.
Silo version / commit
silo-android main at 238134a; server main at 9d3f24ca.
Deployment
Isolated dev sandbox.
Clients affected
Android (TV).
Client app and device
Android TV app, debug build, Android TV emulator (Android 16, 1080p).
Media and playback details
Synthetic MKV: H.264 video, English AAC stereo audio, embedded SubRip "English (SDH)" (Default flag) and "Spanish". Direct play.
Relevant logs
No logs available; the menu has no log output for this.
Technical notes
buildTvSubtitleHudOptions (androidTvApp/.../player/TvSubtitleHudState.kt, lines 135–158 on main) lists every server subtitle row, then adds every player track that resolvedMountedSubtitleTrackIndexes does not map to a row. In this direct-play case an unselected embedded track does not resolve to its server row, so it is listed again as a player-only track. A selected embedded track does resolve, which is why the selected one appears once. I have not traced why resolution fails only for unselected tracks.
AI disclosure
- Harness: Claude Code (in T3 Code)
- Tools: Claude Code, Android TV emulator through T3 device tools
- Model: claude-opus-5-5
- Involvement: found and reproduced by the agent while verifying a fix for silo-android#589; filed at the maintainer's direction
- Independent review: none for this issue
Confirmations
- I searched open and recently closed issues and pull requests, and this is not already reported
- I reproduced this myself on a real deployment
- Any logs provided are raw apart from marked redactions and are not AI-summarized; if none were available, I said so above
Source: found while verifying a fix for #589
Activity
fix(tv): list each embedded subtitle track once in the player menu (#…