Enhance AniList character dictionary sync and subtitle features (#15)

This commit is contained in:
sudacode authored and GitHub committed 2026-03-07 18:30:59 -08:00
1 parent 2f07c3407a
commit e18985fb14
696 files changed
+14297 -173564

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
export const VIDEO_EXTENSIONS = new Set([
'mkv',
'mp4',
'avi',
'webm',
'mov',
'flv',
'wmv',
'm4v',
'ts',
'm2ts',
]);
export function hasVideoExtension(value: string): boolean {
const normalized = value.trim().toLowerCase().replace(/^\./, '');
return normalized.length > 0 && VIDEO_EXTENSIONS.has(normalized);
}