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: endpoints:
base_url: https://www.rte.ie base_url: https://www.rte.ie
feed: https://feed.entertainment.tv.theplatform.eu 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: try:
data = json.loads(manifest_str) data = json.loads(manifest_str)
for source in data.get("sources", []): 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: if widevine and "license_url" in widevine:
return widevine["license_url"] return widevine["license_url"]
except json.JSONDecodeError: except json.JSONDecodeError:
@@ -172,14 +172,14 @@ class TVNZ(Service):
) )
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,
) )