[exhentai] add 'domain' option (#897)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user