mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-13 12:35:05 +00:00
refactor(drm): resolve content keys in one licence path behind ServerKeySource
Drop null keys from every licence, server and export source, not only Widevine. dl now finds remote sessions and imports through ServerKeySource instead of private fields.
This commit is contained in:
@@ -301,7 +301,7 @@ def test_import_takes_its_drm_type_from_the_export(tmp_path: Path, system: str,
|
||||
doc["titles"][0]["drm"] = [{"system": system, "pssh": "AAAA"}]
|
||||
export.write_text(json.dumps(doc), encoding="utf8")
|
||||
|
||||
assert ImportService(import_ctx(), "EXAMPLE", "movie-1", str(export))._server_cdm_type == expected
|
||||
assert ImportService(import_ctx(), "EXAMPLE", "movie-1", str(export)).server_cdm_type == expected
|
||||
|
||||
|
||||
class KeyDRM:
|
||||
|
||||
Reference in New Issue
Block a user