From b060675698c01cc85ec36d0b59bbc1bfe4dbe90b Mon Sep 17 00:00:00 2001 From: FoxRefire <155989196+FoxRefire@users.noreply.github.com> Date: Sat, 18 May 2024 04:56:28 +0900 Subject: [PATCH] Add Lemino into BlockRules --- blockRules.conf | 1 + python/pre.py | 2 ++ python/schemes/VdoCipher.py | 1 - 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/blockRules.conf b/blockRules.conf index 5630926..9cde4ef 100644 --- a/blockRules.conf +++ b/blockRules.conf @@ -1 +1,2 @@ license.vdocipher.com +drm.lemino.docomo.ne.jp/widevine_license diff --git a/python/pre.py b/python/pre.py index 05fd150..f8f3c3f 100644 --- a/python/pre.py +++ b/python/pre.py @@ -46,3 +46,5 @@ session_id = cdm.open() challenge = cdm.get_license_challenge(session_id, pssh) licHeaders=json.loads(licHeaders) + +js.chrome.extension.getBackgroundPage().isBlock=False diff --git a/python/schemes/VdoCipher.py b/python/schemes/VdoCipher.py index 7e6636e..ec5bc30 100644 --- a/python/schemes/VdoCipher.py +++ b/python/schemes/VdoCipher.py @@ -1,4 +1,3 @@ -js.chrome.extension.getBackgroundPage().isBlock=False b64challenge = base64.b64encode(challenge).decode() payload = json.loads(base64.b64decode(licBody.encode()).decode())