fix(remote): license a server-CDM track through ServerKeySource

This commit is contained in:
imSp4rky
2026-11-25 14:50:41 -07:00
parent 6923c5e242
commit 0a1a7d759f
10 changed files with 222 additions and 173 deletions
+4 -8
View File
@@ -673,6 +673,10 @@ class ImportService:
"""Always False: an import licenses nothing."""
return False
def license_track(self, track: AnyTrack, drm: Any, kid: Optional[UUID] = None) -> Optional[dict[UUID, str]]:
"""Raise the error that names the KIDs of ``track`` neither the export nor a vault holds."""
raise self.missing_key(track)
def vault_source(self, kid: UUID, key: str) -> None:
"""Always None: no server vault serves an import."""
return None
@@ -800,14 +804,6 @@ class ImportService:
def get_widevine_service_certificate(self, **_: Any) -> Optional[str]:
return None
def get_widevine_license(self, *, challenge: bytes, title: Title_T, track: AnyTrack) -> Optional[Union[bytes, str]]:
raise self.missing_key(track)
def get_playready_license(
self, *, challenge: bytes, title: Title_T, track: AnyTrack
) -> Optional[Union[bytes, str]]:
raise self.missing_key(track)
def get_clearkey_license(
self, *, challenge: bytes, title: Title_T, track: AnyTrack
) -> Optional[Union[bytes, str, dict]]: