mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-16 14:05:10 +00:00
Merge last minute changes from dev
Co-authored-by: CodeName393 <62503817+CodeName393@users.noreply.github.com>
This commit is contained in:
@@ -27,7 +27,13 @@ class MockCertificateChain:
|
|||||||
class Key:
|
class Key:
|
||||||
"""`Key` object compatible with pywidevine."""
|
"""`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):
|
if isinstance(kid, str):
|
||||||
clean_kid = kid.replace("-", "")
|
clean_kid = kid.replace("-", "")
|
||||||
if len(clean_kid) == 32:
|
if len(clean_kid) == 32:
|
||||||
@@ -43,6 +49,7 @@ class Key:
|
|||||||
self.key = key
|
self.key = key
|
||||||
|
|
||||||
self.type = type_
|
self.type = type_
|
||||||
|
self.permissions = permissions or []
|
||||||
|
|
||||||
|
|
||||||
class CustomRemoteCDMExceptions:
|
class CustomRemoteCDMExceptions:
|
||||||
|
|||||||
Reference in New Issue
Block a user