summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/exhentai.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2020-07-20 01:03:23 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2020-07-20 01:03:23 -0400
commitba039cfb2e1ba2522ee0a0fa2a84a1a6579e4877 (patch)
tree2e057b8e83968c7ab951b1b60aa16b71682f5414 /gallery_dl/extractor/exhentai.py
parent02dd2886783cd303cff6890a741152d013bb00ce (diff)
New upstream version 1.14.3.upstream/1.14.3
Diffstat (limited to 'gallery_dl/extractor/exhentai.py')
-rw-r--r--gallery_dl/extractor/exhentai.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/gallery_dl/extractor/exhentai.py b/gallery_dl/extractor/exhentai.py
index 6cc3abc..bf310ec 100644
--- a/gallery_dl/extractor/exhentai.py
+++ b/gallery_dl/extractor/exhentai.py
@@ -35,9 +35,12 @@ class ExhentaiExtractor(Extractor):
def __init__(self, match):
version = match.group(1)
- if version != "ex":
- self.root = "https://e-hentai.org"
- self.cookiedomain = ".e-hentai.org"
+ domain = self.config("domain", "auto")
+ if domain == "auto":
+ domain = ("ex" if version == "ex" else "e-") + "hentai.org"
+ self.root = "https://" + domain
+ self.cookiedomain = "." + domain
+
Extractor.__init__(self, match)
self.limits = self.config("limits", True)
self.original = self.config("original", True)