chore: 临时文件前缀改为 .scenemarshal-

This commit is contained in:
ali
2026-11-19 12:22:49 +08:00
parent d067e4a647
commit 8c5ccf470c
+3 -3
View File
@@ -156,7 +156,7 @@ class SubtitleService:
log.debug(f"✨ [跳过导出] 目标内置 ASS 已存在: {out_ass.name}")
return 1
temp_ass = dest_dir / f".scenerename-{uuid4().hex[:12]}.ass"
temp_ass = dest_dir / f".scenemarshal-{uuid4().hex[:12]}.ass"
task_mgr.add_extract(
f"[导出内置 ASS] {file_path.name} (轨道 {stream_idx}) --> {out_ass.name}",
SubtitleService.do_export_ass,
@@ -172,7 +172,7 @@ class SubtitleService:
SubtitleService._drop_external_copies(out_srt)
return 1
temp_ass = dest_dir / f".scenerename-{uuid4().hex[:12]}.ass"
temp_ass = dest_dir / f".scenemarshal-{uuid4().hex[:12]}.ass"
task_mgr.add_extract(
f"[提取内置字幕] {file_path.name} (轨道 {stream_idx}) --> {out_srt.name}",
SubtitleService.do_extract,
@@ -330,7 +330,7 @@ class SubtitleService:
if out_srt.exists() and out_srt.stat().st_size > 0:
continue
temp = dest_dir / f".scenerename-{uuid4().hex[:12]}.srt"
temp = dest_dir / f".scenemarshal-{uuid4().hex[:12]}.srt"
cmd = ["ffmpeg", "-v", "error", "-i", str(file_path),
"-map", f"0:{s['index']}", "-an", "-vn", "-c:s", "srt", "-f", "srt",
"-y", str(temp)]