fix(remote): stop at the licence step when a licence fails, falling back only to the service's cdm entry

This commit is contained in:
imSp4rky
2026-12-04 16:31:28 -07:00
parent dd524f2cb2
commit 3bdca22bc7
10 changed files with 355 additions and 48 deletions
+3 -2
View File
@@ -108,8 +108,9 @@ class ServerKeySource(Protocol):
"""The content keys the server licenses for ``drm`` of ``track``, or None when it hands ``track`` to this machine's CDM.
Call it only for a track ``licenses_locally`` does not name; after None, it names the track. ``kid`` is
the KID the answer must hold. A failed request returns no keys. A refusal this machine cannot take over
raises ClickException.
the KID the answer must hold. A failed request or an answer without that content key hands the track to
this machine only when the service's own ``cdm`` entry named its device. Otherwise it, a track with no
header and a refusal this machine cannot take over raise a DRM_ERROR ClickException.
"""
def license_file(self, track: AnyTrack) -> str: