From 4bb3d2a414707fbb070a7967b71d012dd9ddcda6 Mon Sep 17 00:00:00 2001 From: imSp4rky Date: Sat, 26 Sep 2026 11:01:12 -0600 Subject: [PATCH] Merge last minute changes from dev Co-authored-by: CodeName393 <62503817+CodeName393@users.noreply.github.com> --- unshackle/core/cdm/custom_remote_cdm.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/unshackle/core/cdm/custom_remote_cdm.py b/unshackle/core/cdm/custom_remote_cdm.py index 0cd13dcd..36431425 100644 --- a/unshackle/core/cdm/custom_remote_cdm.py +++ b/unshackle/core/cdm/custom_remote_cdm.py @@ -27,7 +27,13 @@ class MockCertificateChain: class Key: """`Key` object compatible with pywidevine.""" - def __init__(self, kid: str, key: str, type_: str = "CONTENT"): + def __init__( + self, + kid: Union[str, UUID], + key: Union[str, bytes], + type_: str = "CONTENT", + permissions: Optional[List[str]] = None, + ): if isinstance(kid, str): clean_kid = kid.replace("-", "") if len(clean_kid) == 32: @@ -43,6 +49,7 @@ class Key: self.key = key self.type = type_ + self.permissions = permissions or [] class CustomRemoteCDMExceptions: