swap wienvied/widevine

This commit is contained in:
VineFeeder
2025-09-02 11:55:07 +01:00
parent 57e6d974fb
commit 6002c655dd
3 changed files with 6 additions and 6 deletions
@@ -26,7 +26,7 @@ from .schemes import EntityAuthenticationSchemes # noqa: F401
from .schemes import KeyExchangeSchemes
from .schemes.EntityAuthentication import EntityAuthentication
from .schemes.KeyExchangeRequest import KeyExchangeRequest
# from vinetrimmer.utils.wienvied.device import RemoteDevice
# from vinetrimmer.utils.widevine.device import RemoteDevice
class MSL:
log = logging.getLogger("MSL")
@@ -166,11 +166,11 @@ class STV(Service):
source
for source in data["sources"]
if source.get("type") == "application/dash+xml"
and source.get("key_systems").get("com.wienvied.alpha")),
and source.get("key_systems").get("com.widevine.alpha")),
None,
)
self.license = key_systems["key_systems"]["com.wienvied.alpha"]["license_url"] if key_systems else None
self.license = key_systems["key_systems"]["com.widevine.alpha"]["license_url"] if key_systems else None
manifest = self.trim_duration(source_manifest)
tracks = DASH.from_text(manifest, source_manifest).to_tracks(title.language)
@@ -120,14 +120,14 @@ class UKTV(Service):
data = r.json()
self.license = next((
x["key_systems"]["com.wienvied.alpha"]["license_url"]
x["key_systems"]["com.widevine.alpha"]["license_url"]
for x in data["sources"]
if x.get("key_systems").get("com.wienvied.alpha")),
if x.get("key_systems").get("com.widevine.alpha")),
None,
)
source_manifest = next((
x["src"] for x in data["sources"]
if x.get("key_systems").get("com.wienvied.alpha")),
if x.get("key_systems").get("com.widevine.alpha")),
None,
)
if not self.license or not source_manifest: