mirror of
https://github.com/vinefeeder/TwinVine.git
synced 2026-07-15 18:10:04 +02:00
swap wienvied/widevine
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user