fix(rename): 忽略抽字幕/字体的临时文件
This commit is contained in:
@@ -135,6 +135,9 @@ class RenamerService:
|
||||
for asset in sorted(f_path.parent.iterdir()):
|
||||
if not asset.is_file() or asset.suffix.lower() not in config.SIDECAR_EXTS:
|
||||
continue
|
||||
# 抽字幕/字体的临时文件(.scenemarshal-*.ass、.*.part*)还在写,别当成外挂字幕认领
|
||||
if asset.name.startswith('.'):
|
||||
continue
|
||||
rest = RenamerService._sidecar_rest(asset, f_path, single_video)
|
||||
if rest is None:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user