fix: static method defines hostname, update url link

pull/5712/head
KageNiHisomu 3 months ago committed by GitHub
parent 68540aef2a
commit 87859ff200
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -17,7 +17,6 @@ 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"
@ -78,7 +77,8 @@ class HentainexusGalleryExtractor(GalleryExtractor):
@staticmethod
def _decode(data):
# https://hentainexus.com/static/js/reader.min.js?r=13
# https://hentainexus.com/static/js/reader.min.js?r=22
hostname = "hentainexus.com"
primes = (2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53)
blob = list(binascii.a2b_base64(data))
for i in range(0, len(hostname)):

Loading…
Cancel
Save