PSSH: Create a string representation

This commit is contained in:
rlaphoenix 2022-12-26 22:39:34 +00:00
parent 0e4275bd1e
commit e31ba61302
1 changed files with 3 additions and 0 deletions

View File

@ -99,6 +99,9 @@ class PSSH:
self.__key_ids = box.key_IDs self.__key_ids = box.key_IDs
self.init_data = box.init_data self.init_data = box.init_data
def __repr__(self) -> str:
return f"PSSH<{self.system_id}>(v{self.version}; {self.flags}, {self.key_ids}, {self.init_data})"
@classmethod @classmethod
def new( def new(
cls, cls,