feat(subtitles): add local Japanese subtitle generation

- Generate Japanese SRTs through the overlay modal or launcher
- Support managed whisper.cpp models and optional dialogue detection
This commit is contained in:
2026-09-07 21:43:53 -07:00
parent c14c690875
commit 2d623838d5
82 changed files with 4001 additions and 54 deletions
+5 -1
View File
@@ -116,8 +116,12 @@ export function findActiveSubtitleCueIndex(
return -1;
}
// The mpv client maps cleared sub-start to zero. Empty text has no active cue timing.
const hasCurrentTiming =
typeof current?.startTime === 'number' && Number.isFinite(current.startTime);
current !== null &&
normalizeCueText(current.text).length > 0 &&
typeof current.startTime === 'number' &&
Number.isFinite(current.startTime);
if (hasCurrentTiming) {
const timingMatch = cues.findIndex(