forked from kenzuya/unshackle
fix(subprocess): name the tool, exit and reason in external-tool errors
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user