feat(drm): license a plugin DRM at the licence step and over --remote with the client's plugin device

This commit is contained in:
imSp4rky
2026-12-03 15:51:42 -07:00
parent f1f91a7d5c
commit 0536056ed6
24 changed files with 803 additions and 136 deletions
@@ -737,7 +737,7 @@ def _sent_create_data(parent_params: dict, service_params: dict) -> dict:
def test_open_session_posts_what_session_request_builds() -> None:
parent = {"profile": "work", "lang": ["en"], "range_": [Video.Range.DV], "quality": [1080]}
data = _sent_create_data(parent, {"lang": 3})
sent = {k: v for k, v in data.items() if k not in ("service", "title_id", "client", "session_id")}
sent = {k: v for k, v in data.items() if k not in ("service", "title_id", "client", "session_id", "plugins")}
assert sent == session_request({"no_proxy": True, **parent}, {"lang": 3})
assert sent["dl_params"]["lang"] == ["en"]