summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/exhentai.py
diff options
context:
space:
mode:
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)