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