fix(tracks): treat ccextractor signal-crash as non-fatal

A crash (negative return code, e.g. SIGABRT) during best-effort CC extraction now logs a warning instead of aborting a completed download.
This commit is contained in:
imSp4rky
2026-07-09 22:49:32 -06:00
parent 847696b301
commit af46dd5fc9

View File

@@ -543,6 +543,11 @@ class Video(Track):
e.returncode,
duration_ms=round((time.monotonic() - cc_start) * 1000, 1),
)
if e.returncode < 0:
logging.getLogger("Video").warning(
f"ccextractor crashed (signal {-e.returncode}) on {self.path.name}; skipping CC extraction"
)
return out_path.exists()
if e.returncode != 10: # 10 = No captions found
raise
return out_path.exists()