From 68540aef2a743f7e17ab5776fc20f9c6a5b4bb43 Mon Sep 17 00:00:00 2001 From: KageNiHisomu Date: Mon, 10 Jun 2024 14:25:51 +1000 Subject: [PATCH] update nexus key --- gallery_dl/extractor/hentainexus.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gallery_dl/extractor/hentainexus.py b/gallery_dl/extractor/hentainexus.py index 2320c38d..f5f0c039 100644 --- a/gallery_dl/extractor/hentainexus.py +++ b/gallery_dl/extractor/hentainexus.py @@ -17,6 +17,7 @@ class HentainexusGalleryExtractor(GalleryExtractor): """Extractor for hentainexus galleries""" category = "hentainexus" root = "https://hentainexus.com" + hostname = "hentainexus.com" pattern = (r"(?i)(?:https?://)?(?:www\.)?hentainexus\.com" r"/(?:view|read)/(\d+)") example = "https://hentainexus.com/view/12345" @@ -79,7 +80,10 @@ class HentainexusGalleryExtractor(GalleryExtractor): def _decode(data): # https://hentainexus.com/static/js/reader.min.js?r=13 primes = (2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53) - blob = binascii.a2b_base64(data) + blob = list(binascii.a2b_base64(data)) + for i in range(0, len(hostname)): + blob[i] = blob[i] ^ ord(hostname[i]) + key = blob[0:64] C = 0