跳过 macOS 资源分支文件(._ 开头)避免转码报错

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
FlintyLemming
2026-02-22 15:52:20 +08:00
parent cedf36e632
commit 7655176610

View File

@@ -97,6 +97,8 @@ def main():
tasks = []
print(f"正在扫描目录: {input_root} ...")
for file in input_root.rglob("*"):
if file.name.startswith("._"):
continue
if file.suffix.lower() in VIDEO_EXTS:
# 计算相对路径并更换后缀为 .mp4
rel_path = file.relative_to(input_root)