From 835ccf5a45b15b4e59d2dc783d33ce5946e0beac Mon Sep 17 00:00:00 2001 From: FoxRefire <155989196+FoxRefire@users.noreply.github.com> Date: Fri, 3 May 2024 19:21:17 +0900 Subject: [PATCH] thePlatform(rte.ie) --- popup.html | 1 + python/schemes/thePlatform.py | 9 +++++++++ selectRules.conf | 1 + 3 files changed, 11 insertions(+) create mode 100644 python/schemes/thePlatform.py diff --git a/popup.html b/popup.html index b7a6d25..ec08c9c 100644 --- a/popup.html +++ b/popup.html @@ -39,6 +39,7 @@ +

diff --git a/python/schemes/thePlatform.py b/python/schemes/thePlatform.py new file mode 100644 index 0000000..968ce8c --- /dev/null +++ b/python/schemes/thePlatform.py @@ -0,0 +1,9 @@ +payload = json.loads(base64.b64decode(licBody.encode()).decode()) +b64challenge = base64.b64encode(challenge).decode() +payload["getWidevineLicense"]["widevineChallenge"]=b64challenge +res = await (await pyfetch(licUrl, + method="POST", + headers=licHeaders, + body=json.dumps(payload) +)).json() +licence = base64.b64decode(res["getWidevineLicenseResponse"]["license"].encode()) diff --git a/selectRules.conf b/selectRules.conf index 357d5d4..6356130 100644 --- a/selectRules.conf +++ b/selectRules.conf @@ -5,6 +5,7 @@ lic.staging.drmtoday$$DRMToday lic.drmtoday.com$$DRMToday corusappservices.com/authorization/widevine/getresourcekey$$GlobalTV b2c-www.redefine.pl/rpc/drm$$Polsat +widevine.entitlement.eu.theplatform.com$$thePlatform license-ap getRawWidevineLicense AcquireLicense