mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-11-26 16:46:06 -08:00
feat(jimaku): auto-open modal when a video has no Japanese subtitle (#319)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Ivan Melck <ivan@spec-kitty.ai>
This commit is contained in:
24 files changed
+907
-22
No files matched your search
@@ -90,6 +90,18 @@ export function applySubtitleDomainConfig(context: ResolveContext): void {
|
||||
'Expected positive number.',
|
||||
);
|
||||
}
|
||||
|
||||
const autoOpen = asBoolean(src.jimaku.autoOpenWhenPrimarySubtitleMissing);
|
||||
if (autoOpen !== undefined) {
|
||||
resolved.jimaku.autoOpenWhenPrimarySubtitleMissing = autoOpen;
|
||||
} else if (src.jimaku.autoOpenWhenPrimarySubtitleMissing !== undefined) {
|
||||
warn(
|
||||
'jimaku.autoOpenWhenPrimarySubtitleMissing',
|
||||
src.jimaku.autoOpenWhenPrimarySubtitleMissing,
|
||||
resolved.jimaku.autoOpenWhenPrimarySubtitleMissing,
|
||||
'Expected boolean.',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
const currentTsukihimeSource = isObject(src.tsukihime) ? src.tsukihime : null;
|
||||
|
||||
Reference in new issue
Block a user