Language rule: original language, dubs and pt-BR detection #11

Closed
opened 2026-08-22 18:22:38 +01:00 by naps62-yolo · 0 comments
Owner

DESIGN.md §5.2. The rule is one expression:

reject audio track T if T.lang ∈ dub_blacklist and T.lang ≠ title.original_language

which requires the title's original language from TMDB as a distinct input from
any track's language. Verify both roots behave as §5.2 describes, including a
Brazilian film's own soundtrack passing in main.

The hard part is pt-PT versus pt-BR: ISO-639-2 has one code for both. Implement
the three signals in order — release-name markers, ffprobe stream title and
handler_name strings, container BCP-47 tags — and when none resolve it, emit
por-unverified and surface it. Never guess.

Acceptance: a test per row of the truth table in §5.2, plus an explicit test
that an unresolvable Portuguese track produces por-unverified and not a
guess in either direction.


Depends on: #10

Labels: phase/2-logic, area/core, difficulty/hard, type/feature

`DESIGN.md` §5.2. The rule is one expression: reject audio track T if T.lang ∈ dub_blacklist and T.lang ≠ title.original_language which requires the title's original language from TMDB as a distinct input from any track's language. Verify both roots behave as §5.2 describes, including a Brazilian film's own soundtrack passing in `main`. The hard part is pt-PT versus pt-BR: ISO-639-2 has one code for both. Implement the three signals in order — release-name markers, `ffprobe` stream title and `handler_name` strings, container BCP-47 tags — and when none resolve it, emit `por-unverified` and surface it. Never guess. Acceptance: a test per row of the truth table in §5.2, plus an explicit test that an unresolvable Portuguese track produces `por-unverified` and not a guess in either direction. --- **Depends on:** #10 Labels: `phase/2-logic`, `area/core`, `difficulty/hard`, `type/feature`
naps62-yolo added the area/coredifficulty/hardphase/2-logictype/feature labels 2026-08-22 18:22:38 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: yolo/arr#11