From 6eba2a85a5d7fa0f4cc571fcc314797af84334fe Mon Sep 17 00:00:00 2001 From: FoxRefire <155989196+FoxRefire@users.noreply.github.com> Date: Wed, 8 May 2024 09:18:01 +0900 Subject: [PATCH] Add NosTV by request --- popup.html | 1 + python/schemes/NosTV.py | 7 +++++++ selectRules.conf | 1 + 3 files changed, 9 insertions(+) create mode 100644 python/schemes/NosTV.py diff --git a/popup.html b/popup.html index e1f59da..a99e126 100644 --- a/popup.html +++ b/popup.html @@ -38,6 +38,7 @@ + diff --git a/python/schemes/NosTV.py b/python/schemes/NosTV.py new file mode 100644 index 0000000..5f75f49 --- /dev/null +++ b/python/schemes/NosTV.py @@ -0,0 +1,7 @@ +b64challenge = base64.b64encode(challenge).decode() +res = await (await pyfetch(licUrl, + method="POST", + headers=licHeaders, + body=json.dumps({"challenge": b64challenge}) +)).json() +licence = base64.b64decode(res["license"][0].encode()) diff --git a/selectRules.conf b/selectRules.conf index a33d1a8..4aaa35c 100644 --- a/selectRules.conf +++ b/selectRules.conf @@ -8,6 +8,7 @@ b2c-www.redefine.pl/rpc/drm$$Polsat widevine.entitlement.eu.theplatform.com$$thePlatform cdp/catalog/GetPlaybackResources$$Amazon drm-license.youku.tv$$Youku +NOS71ZV1/wvls$$NosTV contentlicenseservice/v1/licenses media-license-server/validate-auth-token wv-keyos.licensekeyserver