feat: add manual video tagging

This commit is contained in:
2026-04-29 21:20:21 +08:00
parent 02d37f3953
commit eac6ad2343
17 changed files with 1066 additions and 418 deletions
+9
View File
@@ -38,3 +38,12 @@ export function normalizeAsrContentTags(tags: unknown): AsrContentTag[] {
const uniqueTags = [...new Set(normalized)].slice(0, 3);
return uniqueTags.length > 0 ? uniqueTags : ["其他"];
}
export function resolveEffectiveContentTags(
manualTags: readonly string[] | null | undefined,
asrTags: readonly string[] | null | undefined,
) {
return manualTags && manualTags.length > 0
? [...manualTags]
: [...(asrTags ?? [])];
}