refactor(drm): read PlayReady KIDs from pyplayready WRM headers and drop the hand XML scan

This commit is contained in:
imSp4rky
2026-11-29 12:08:27 -07:00
parent adb3b84388
commit c9cbd8c9fa
6 changed files with 60 additions and 155 deletions
@@ -105,7 +105,7 @@ class StubPlayReady(PlayReady):
kids: Any = None
def __init__(self, pssh: Any = None, pssh_b64: str | None = None, **kwargs: Any) -> None:
self.pssh = SimpleNamespace(wrm_headers=[SimpleNamespace(dumps=lambda: "<WRMHEADER/>")])
self.pssh = SimpleNamespace(wrm_headers=[SimpleNamespace(dumps=lambda: "<WRMHEADER/>", key_ids=[])])
self.pssh_b64 = pssh_b64
self.kids = [KID]
self._extra_headers: list[Any] = []