[exhentai] try to avoid 'DH_KEY_TOO_SMALL' errors (#1021, #4593)

This commit is contained in:
Mike Fährmann
2023-11-04 17:30:27 +01:00
parent 69b931b9bb
commit 61d6558322
2 changed files with 3 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ class Extractor():
root = ""
cookies_domain = ""
referer = True
ciphers = None
tls12 = True
browser = None
request_interval = 0.0
@@ -305,6 +306,7 @@ class Extractor():
headers["User-Agent"] = useragent
headers["Accept"] = "*/*"
headers["Accept-Language"] = "en-US,en;q=0.5"
ssl_ciphers = self.ciphers
if BROTLI:
headers["Accept-Encoding"] = "gzip, deflate, br"

View File

@@ -27,6 +27,7 @@ class ExhentaiExtractor(Extractor):
cookies_names = ("ipb_member_id", "ipb_pass_hash")
root = "https://exhentai.org"
request_interval = 5.0
ciphers = "DEFAULT:!DH"
LIMIT = False