From e31ba61302cf41610a53573816f5f958ea031e6e Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Mon, 26 Dec 2022 22:39:34 +0000 Subject: [PATCH] PSSH: Create a string representation --- pywidevine/pssh.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pywidevine/pssh.py b/pywidevine/pssh.py index e4a4a2e..53b3e79 100644 --- a/pywidevine/pssh.py +++ b/pywidevine/pssh.py @@ -99,6 +99,9 @@ class PSSH: self.__key_ids = box.key_IDs 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 def new( cls,