feat(remote): cap server CDM licensing by height per API key and service

A session above the cap licenses with the client's own device, and a track above it in an uncapped -q run is handed back to the client. Also names the fallback in the ccextractor crash warning.
This commit is contained in:
imSp4rky
2026-09-24 16:50:26 -06:00
parent 91db1fa0b1
commit 7d31153c7f
21 changed files with 1087 additions and 47 deletions
@@ -40,7 +40,7 @@ class _Client:
self.answer = answer
self.posts: list = []
def post(self, endpoint, payload):
def post(self, endpoint, payload, expect=()):
self.posts.append(payload)
return self.answer
@@ -49,6 +49,7 @@ def _service(server_type, answer):
svc = RemoteService.__new__(RemoteService)
svc._server_cdm = True
svc._server_cdm_type = server_type
svc.client_licensed = set()
svc._session_id = "sess"
svc.server_vault_keys = {}
svc.log = logging.getLogger("test-remote-license")