mirror of
https://github.com/devine-dl/pywidevine.git
synced 2024-10-30 05:29:21 +00:00
PSSH: Return Base64 representation with __str__
This commit is contained in:
parent
bc2b5beef4
commit
2648d1c669
@ -127,6 +127,9 @@ class PSSH:
|
|||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
return f"PSSH<{self.system_id}>(v{self.version}; {self.flags}, {self.key_ids}, {self.init_data})"
|
return f"PSSH<{self.system_id}>(v{self.version}; {self.flags}, {self.key_ids}, {self.init_data})"
|
||||||
|
|
||||||
|
def __str__(self) -> str:
|
||||||
|
return self.dumps()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def new(
|
def new(
|
||||||
cls,
|
cls,
|
||||||
|
Loading…
Reference in New Issue
Block a user