bugfix: 无进度条时仍试图刷新进度

This commit is contained in:
2026-05-11 01:23:10 +08:00
parent fe236a2cc0
commit 5c94030067
+1 -1
View File
@@ -66,7 +66,7 @@ def start_ffmpeg(infile: Path, outfile: Path):
def set_progress(line: str, dur, pbar):
if not line.startswith("out_time_ms="):
if not pbar or not line.startswith("out_time_ms="):
return
try:
us = int(line.split('=')[1])