From 2648d1c6692ec20e929e46fb6e917f8a57268117 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Mon, 26 Dec 2022 23:47:43 +0000 Subject: [PATCH] PSSH: Return Base64 representation with `__str__` --- pywidevine/pssh.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pywidevine/pssh.py b/pywidevine/pssh.py index 8ac7330..2251492 100644 --- a/pywidevine/pssh.py +++ b/pywidevine/pssh.py @@ -127,6 +127,9 @@ class PSSH: def __repr__(self) -> str: 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 def new( cls,