From 361d6d58c0d1c6a2e08e37541f786fc5dccbbd32 Mon Sep 17 00:00:00 2001 From: ElCap13 <102562838+ElCap13@users.noreply.github.com> Date: Fri, 14 Jun 2024 11:49:52 +0900 Subject: [PATCH] Add another license server used in Canal+ --- popup.html | 1 + python/schemes/CanalPlus2.py | 9 +++++++++ selectRules.conf | 1 + 3 files changed, 11 insertions(+) create mode 100644 python/schemes/CanalPlus2.py diff --git a/popup.html b/popup.html index 7b303d9..5e24239 100644 --- a/popup.html +++ b/popup.html @@ -30,6 +30,7 @@ + diff --git a/python/schemes/CanalPlus2.py b/python/schemes/CanalPlus2.py new file mode 100644 index 0000000..34b55a1 --- /dev/null +++ b/python/schemes/CanalPlus2.py @@ -0,0 +1,9 @@ +import re +b64challenge = base64.b64encode(challenge).decode() +res = await (await pyfetch(licUrl, +method="POST", +headers=licHeaders, +body=b64challenge +)).text() + +licence = base64.b64decode(re.search(".*(.*)<\/license>", str(res))[2].encode()) diff --git a/selectRules.conf b/selectRules.conf index 2ec53cf..c6e0c26 100644 --- a/selectRules.conf +++ b/selectRules.conf @@ -11,6 +11,7 @@ drm-license.youku.tv$$Youku NOS71ZV1/wvls$$NosTV license.vdocipher.com/auth$$VdoCipher zones/cppol/devices/31/apps/1/jobs/GetLicence$$CanalPlus +secure-gen-hapi.canal-plus.com/conso/view$$CanalPlus2 widevine-proxy.drm.technology/proxy$$RiverTV motv.eu/widevine_proxy$$moTV mw.tvnsul.com.br/widevine_proxy$$moTV