From 658636c1fb62323cdb837606c41298d820a0f9e7 Mon Sep 17 00:00:00 2001 From: FoxRefire <155989196+FoxRefire@users.noreply.github.com> Date: Thu, 2 May 2024 02:27:32 +0900 Subject: [PATCH] Add Polsat --- popup.html | 1 + python/schemes/Polsat.py | 10 ++++++++++ selectRules.conf | 1 + 3 files changed, 12 insertions(+) create mode 100644 python/schemes/Polsat.py diff --git a/popup.html b/popup.html index dada55d..4588c18 100644 --- a/popup.html +++ b/popup.html @@ -28,6 +28,7 @@ +
diff --git a/python/schemes/Polsat.py b/python/schemes/Polsat.py new file mode 100644 index 0000000..5cd4390 --- /dev/null +++ b/python/schemes/Polsat.py @@ -0,0 +1,10 @@ +import base64 +payload = json.loads(base64.b64decode(licBody.encode()).decode()) +challengeB64 = base64.b64encode(challenge).decode() +payload['params']['object'] = challengeB64 +licence = await (await pyfetch(licUrl, + method="POST", + headers=licHeaders, + body=json.dumps(payload) +)).json() +base64.b64decode(licence['result']['object']['license'].encode()) diff --git a/selectRules.conf b/selectRules.conf index ea8fa4d..7637159 100644 --- a/selectRules.conf +++ b/selectRules.conf @@ -2,5 +2,6 @@ cwip-shaka-proxy c4.eme.lp.aws.redbee$$RedBee lic.staging.drmtoday$$DRMToday corusappservices.com/authorization/widevine/getresourcekey$$GlobalTV +b2c-www.redefine.pl/rpc/drm$$Polsat license-ap licenseManager.do