swap wienvied/widevine

This commit is contained in:
VineFeeder
2025-09-02 11:51:45 +01:00
parent a437defc25
commit 57e6d974fb
3 changed files with 5 additions and 5 deletions
@@ -4,4 +4,4 @@ headers:
endpoints:
base_url: https://www.rte.ie
feed: https://feed.entertainment.tv.theplatform.eu
license: https://wienvied.entitlement.eu.theplatform.com/wv/web/ModularDrm
license: https://widevine.entitlement.eu.theplatform.com/wv/web/ModularDrm
@@ -20,7 +20,7 @@ def get_widevine_license_url(manifest_str):
try:
data = json.loads(manifest_str)
for source in data.get("sources", []):
widevine = source.get("key_systems", {}).get("com.wienvied.alpha")
widevine = source.get("key_systems", {}).get("com.widevine.alpha")
if widevine and "license_url" in widevine:
return widevine["license_url"]
except json.JSONDecodeError:
@@ -172,14 +172,14 @@ class TVNZ(Service):
)
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,
)