From 2d2359f9a217e1fecc95ac2956e0d9918f47a7b6 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Fri, 18 Nov 2022 08:49:33 +0000 Subject: [PATCH] PSSH: Fix key_IDs field when creating a new PSSH box --- pywidevine/pssh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pywidevine/pssh.py b/pywidevine/pssh.py index 147e1d3..9dc3a55 100644 --- a/pywidevine/pssh.py +++ b/pywidevine/pssh.py @@ -169,7 +169,7 @@ class PSSH: version=version, flags=flags, system_ID=PSSH.SystemId.Widevine, - key_ids=[key_ids, b""][key_ids is None], + key_IDs=[UUID(bytes=kid) for kid in key_ids] if key_ids else None, init_data=[init_data, b""][init_data is None] )))