fix(platform): AutoDL 插件 - 修复视频分辨率后缀丢失并升级插件包

This commit is contained in:
ddCat committed 2026-08-28 14:13:24 +08:00
1 parent 335b5406ad
commit bf093dba92
7 files changed
+39 -7

No files matched your search

+17
View File
@@ -365,6 +365,23 @@ func TestDeclarativeManifestSupportsMediaPathsTransformsAndErrors(t *testing.T)
}
}
func TestDeclarativeManifestNormalizesVideoResolutionWithoutBreakingWorkflowValues(t *testing.T) {
tests := map[string]string{
"768": "768p",
"768p": "768p",
"768P": "768p",
" 768P ": "768p",
"768p竖": "768p竖",
"768P横": "768p横",
"2K": "2k",
}
for input, expected := range tests {
if actual := applyManifestTransform(input, "video-resolution"); actual != expected {
t.Errorf("video resolution transform %q = %#v, want %q", input, actual, expected)
}
}
}
func TestDeclarativeManifestRequiresDocumentation(t *testing.T) {
manifest := Manifest{
APIVersion: "v1",