fix: count pt-BR as pt-PT in subtitle status #286

Merged
naps62-yolo merged 1 commits from fix/subtitle-satisfaction-ui into main 2026-11-15 17:43:22 +00:00
Owner

Requested by naps · project thread

The subtitle status API and the UI now apply §15's rule, "pt-PT preferred, pt-BR accepted", the same way the daemon does. The rule moves to arr_core::subs::satisfies, and the daemon and missing_for both call it. The web side mirrors it in satisfiesWanted.

Before this, the daemon treated an embedded pt-BR track as satisfying pt-PT and never searched. The status API compared languages exactly, so it reported pt-PT · searching forever. The UI also left pt-BR out of the wanted chips. That's what Silo S03 showed: nine episodes with embedded pt-BR, all reading "pt-PT searching", and no pt-BR in view.

Verification
  • Prod /api/series/9/subtitles/status: E01–E03 and E05–E10 have embedded pt-BR, and missing is pt-PT · searching. The daemon log for the same files says pt-PT missing … an existing subtitle satisfies it.
  • New API test: embedded pt-BR drops pt-PT from missing.
  • just ci passes: 838 tests, biome and tsc.

🤖 Generated with Claude Code

<!-- claude-projects-attribution: {"github_login":"naps62"} --> _Requested by **naps** · [project thread](https://claude.ai/code/project/chan_01UYLqY2bRGpRgeywoBE6jwE?thread=cmsg_01UYLqY2bRGpRgeywoBE6jwE7yDArkDjRqgeWPQBN76BJo)_ The subtitle status API and the UI now apply §15's rule, "pt-PT preferred, pt-BR accepted", the same way the daemon does. The rule moves to `arr_core::subs::satisfies`, and the daemon and `missing_for` both call it. The web side mirrors it in `satisfiesWanted`. Before this, the daemon treated an embedded pt-BR track as satisfying pt-PT and never searched. The status API compared languages exactly, so it reported `pt-PT · searching` forever. The UI also left pt-BR out of the wanted chips. That's what Silo S03 showed: nine episodes with embedded pt-BR, all reading "pt-PT searching", and no pt-BR in view. <details><summary>Verification</summary> - Prod `/api/series/9/subtitles/status`: E01–E03 and E05–E10 have embedded `pt-BR`, and `missing` is `pt-PT · searching`. The daemon log for the same files says `pt-PT missing … an existing subtitle satisfies it`. - New API test: embedded pt-BR drops pt-PT from `missing`. - `just ci` passes: 838 tests, biome and tsc. </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code)
naps62-yolo added 1 commit 2026-11-15 17:33:19 +00:00
fix: count pt-BR as pt-PT in subtitle status
ci / web (pull_request) Successful in 1m21s
ci / rust (pull_request) Successful in 5m5s
ci / image (pull_request) Skipped
e2e / e2e (pull_request) Successful in 2m10s
2a71e6fb56
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
naps62-yolo force-pushed fix/subtitle-satisfaction-ui from 218b1a059b to 2a71e6fb56 2026-11-15 17:33:19 +00:00 Compare
naps62-yolo merged commit e93e7cff0c into main 2026-11-15 17:43:22 +00:00
naps62-yolo deleted branch fix/subtitle-satisfaction-ui 2026-11-15 17:43:22 +00:00
Sign in to join this conversation.