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 import KeyExchangeSchemes
from .schemes.EntityAuthentication import EntityAuthentication from .schemes.EntityAuthentication import EntityAuthentication
from .schemes.KeyExchangeRequest import KeyExchangeRequest from .schemes.KeyExchangeRequest import KeyExchangeRequest
# from vinetrimmer.utils.wienvied.device import RemoteDevice # from vinetrimmer.utils.widevine.device import RemoteDevice
class MSL: class MSL:
log = logging.getLogger("MSL") log = logging.getLogger("MSL")
@@ -166,11 +166,11 @@ class STV(Service):
source source
for source in data["sources"] for source in data["sources"]
if source.get("type") == "application/dash+xml" 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, 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) manifest = self.trim_duration(source_manifest)
tracks = DASH.from_text(manifest, source_manifest).to_tracks(title.language) tracks = DASH.from_text(manifest, source_manifest).to_tracks(title.language)
@@ -120,14 +120,14 @@ class UKTV(Service):
data = r.json() data = r.json()
self.license = next(( self.license = next((
x["key_systems"]["com.wienvied.alpha"]["license_url"] x["key_systems"]["com.widevine.alpha"]["license_url"]
for x in data["sources"] for x in data["sources"]
if x.get("key_systems").get("com.wienvied.alpha")), if x.get("key_systems").get("com.widevine.alpha")),
None, None,
) )
source_manifest = next(( source_manifest = next((
x["src"] for x in data["sources"] 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, None,
) )
if not self.license or not source_manifest: if not self.license or not source_manifest: