forked from kenzuya/unshackle
refactor(drm): build PlayReady from base64 with PlayReady.from_pssh_b64 in server keys and the wire rebuild
This commit is contained in:
@@ -1060,12 +1060,8 @@ def test_reconstruct_rest_drm_skips_what_it_cannot_parse(caplog: pytest.LogCaptu
|
||||
entries = [{"type": "widevine"}, {"type": "playready", "pssh": "!!"}, {"type": "clearkeycenc", "kids": ["x"]}]
|
||||
with caplog.at_level(logging.WARNING):
|
||||
assert reconstruct_drm(entries) == []
|
||||
assert [(r.name, r.getMessage()) for r in caplog.records] == [
|
||||
(
|
||||
"remote_service",
|
||||
"Skipping unparseable playready DRM entry from server: InvalidPssh('Data must not be empty')",
|
||||
)
|
||||
]
|
||||
assert [r.name for r in caplog.records] == ["remote_service"]
|
||||
assert caplog.messages[0].startswith("Skipping unparseable playready DRM entry from server: InvalidPssh(")
|
||||
|
||||
|
||||
def test_export_drm_decode() -> None:
|
||||
|
||||
Reference in New Issue
Block a user