From 65d8135e2a401e3f80a4c2e0c1b5e2b6b9c103f0 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Wed, 8 Nov 2023 19:35:47 +0000 Subject: [PATCH] Ignore empty KID values in v4.0.0.0 PlayReadyHeaders --- pywidevine/pssh.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pywidevine/pssh.py b/pywidevine/pssh.py index 4261b89..32c619f 100644 --- a/pywidevine/pssh.py +++ b/pywidevine/pssh.py @@ -254,6 +254,7 @@ class PSSH: key_ids = [ x.text for x in prr_header.findall("./wrm:DATA/wrm:KID", wrm_ns) + if x.text ] elif prr_header_version == "4.1.0.0": key_ids = [