Return subprocess returncode in decrypt()

This commit is contained in:
rlaphoenix 2023-11-08 21:23:05 +00:00
parent 2d8163f76d
commit 0c31f88d23
1 changed files with 2 additions and 2 deletions

View File

@ -473,7 +473,7 @@ class Cdm:
output_file: Union[Path, str],
temp_dir: Optional[Union[Path, str]] = None,
exists_ok: bool = False
):
) -> int:
"""
Decrypt a Widevine-encrypted file using Shaka-packager.
Shaka-packager is much more stable than mp4decrypt.
@ -549,7 +549,7 @@ class Cdm:
temp_dir.mkdir(parents=True, exist_ok=True)
args.extend(["--temp_dir", temp_dir])
subprocess.check_call([executable, *args])
return subprocess.check_call([executable, *args])
@staticmethod
def encrypt_client_id(