chore: 临时文件前缀改为 .scenemarshal-
This commit is contained in:
@@ -156,7 +156,7 @@ class SubtitleService:
|
|||||||
log.debug(f"✨ [跳过导出] 目标内置 ASS 已存在: {out_ass.name}")
|
log.debug(f"✨ [跳过导出] 目标内置 ASS 已存在: {out_ass.name}")
|
||||||
return 1
|
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(
|
task_mgr.add_extract(
|
||||||
f"[导出内置 ASS] {file_path.name} (轨道 {stream_idx}) --> {out_ass.name}",
|
f"[导出内置 ASS] {file_path.name} (轨道 {stream_idx}) --> {out_ass.name}",
|
||||||
SubtitleService.do_export_ass,
|
SubtitleService.do_export_ass,
|
||||||
@@ -172,7 +172,7 @@ class SubtitleService:
|
|||||||
SubtitleService._drop_external_copies(out_srt)
|
SubtitleService._drop_external_copies(out_srt)
|
||||||
return 1
|
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(
|
task_mgr.add_extract(
|
||||||
f"[提取内置字幕] {file_path.name} (轨道 {stream_idx}) --> {out_srt.name}",
|
f"[提取内置字幕] {file_path.name} (轨道 {stream_idx}) --> {out_srt.name}",
|
||||||
SubtitleService.do_extract,
|
SubtitleService.do_extract,
|
||||||
@@ -330,7 +330,7 @@ class SubtitleService:
|
|||||||
if out_srt.exists() and out_srt.stat().st_size > 0:
|
if out_srt.exists() and out_srt.stat().st_size > 0:
|
||||||
continue
|
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),
|
cmd = ["ffmpeg", "-v", "error", "-i", str(file_path),
|
||||||
"-map", f"0:{s['index']}", "-an", "-vn", "-c:s", "srt", "-f", "srt",
|
"-map", f"0:{s['index']}", "-an", "-vn", "-c:s", "srt", "-f", "srt",
|
||||||
"-y", str(temp)]
|
"-y", str(temp)]
|
||||||
|
|||||||
Reference in New Issue
Block a user