This commit is contained in:
CodeName393
2026-02-25 19:17:11 +09:00
committed by GitHub
parent eefb6fcad7
commit b1d28d3229

View File

@@ -286,7 +286,7 @@ class EXAMPLE(Service):
"""Return the Widevine service certificate from config, if available.""" """Return the Widevine service certificate from config, if available."""
return self.config.get("certificate") return self.config.get("certificate")
def get_playready_license(self, *, challenge: bytes, title: Title_T, track: AnyTrack) -> Optional[bytes]: def get_playready_license(self, *, challenge: bytes, title: Title_T, track: AnyTrack) -> Optional[Union[bytes, str]]:
"""Retrieve a PlayReady license for a given track.""" """Retrieve a PlayReady license for a given track."""
license_url = self.config["endpoints"].get("playready_license") license_url = self.config["endpoints"].get("playready_license")