From dfdba71caf2bda5627e236ce467bffa1a3c2b1b4 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Wed, 8 Nov 2023 20:38:38 +0000 Subject: [PATCH] Remove system_id class variable from Cdm The variable name `system_id` conflicts with the `system_id` of the class *instance* variable. There's no need to have this variable there anyway, when it's easily accessible as bytes via `Cdm.uuid.bytes`. --- pywidevine/cdm.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pywidevine/cdm.py b/pywidevine/cdm.py index 37dc99e..6a0159e 100644 --- a/pywidevine/cdm.py +++ b/pywidevine/cdm.py @@ -31,8 +31,7 @@ from pywidevine.utils import get_binary_path class Cdm: - system_id = b"\xed\xef\x8b\xa9\x79\xd6\x4a\xce\xa3\xc8\x27\xdc\xd5\x1d\x21\xed" - uuid = UUID(bytes=system_id) + uuid = UUID(bytes=b"\xed\xef\x8b\xa9\x79\xd6\x4a\xce\xa3\xc8\x27\xdc\xd5\x1d\x21\xed") urn = f"urn:uuid:{uuid}" key_format = urn service_certificate_challenge = b"\x08\x04"