Scott GarrettandClaude Code 30dd96ff79 Recognize subtitle language and type tokens in filenames
getFilenameLanguage now tokenizes the name and scans right-to-left the way mkvmerge's own heuristics do, so a language code survives behind a trailing flag token ("...eng.hearing_impaired.srt" was read as "und"). Three-char tokens try ISO 639-2/T and the library's B codes; the dash stays out of the separator set so region subtags ("pt-BR") are not split into a bogus ISO 639-1 hit.

getFilenameSubtitlesTrackName maps community type tokens (sdh / hearing_impaired / deaf, cc / closed caption, forced, commentary, lyrics) to a bare conventional track name ("SDH"); the language rides its own element. MP4 has no SDH flag and the name-keyword pass in MP42File organizeMediaCharacteristicsForMediaType: turns these names into the real QuickTime tags (public.subtitles.forced-only, public.accessibility.*).

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-28 18:17:53 -05:00
2025-03-11 11:56:03 +01:00
2026-09-22 20:18:56 +02:00
2022-02-24 10:25:17 +01:00
2026-09-22 20:18:56 +02:00
2026-09-22 20:18:56 +02:00
2026-09-22 20:18:56 +02:00
2022-01-02 09:24:40 +01:00
2013-11-18 12:46:47 +01:00
S
Description
No description provided
24 MiB
0 Stars 1 Watchers 0 Forks
Languages
Objective-C 74%
C 10.5%
Objective-C++ 9.7%
Swift 5%
C++ 0.7%