fix(subprocess): name the tool, exit and reason in external-tool errors

This commit is contained in:
imSp4rky
2026-11-28 14:43:29 -07:00
parent 7856d53950
commit 0bd5c4de4f
12 changed files with 305 additions and 165 deletions
+2 -5
View File
@@ -44,6 +44,7 @@ from unshackle.core.temp import restore_segments, stash_segments
from unshackle.core.tracks import resume
from unshackle.core.utilities import language_name, log_event, try_ensure_utf8
from unshackle.core.utils import run_proxy
from unshackle.core.utils.subprocess import run_tool
DRM_PREFERENCE_TYPES: dict[str, type[Widevine] | type[PlayReady]] = {
"wv": Widevine,
@@ -1289,11 +1290,7 @@ class Track:
args.extend(["-bsf:v", bsf, "-xerror"])
args.append(str(output_path))
subprocess.run(
args,
check=True,
capture_output=True,
)
run_tool("FFmpeg", args, "ffmpeg repackage")
log_event(
"repackage",