[exhentai] fix 'domain' option (#4458)

regression from a383eca7
This commit is contained in:
Mike Fährmann
2023-08-23 12:33:29 +02:00
parent fdfb22c91f
commit fd6b413f3c

View File

@@ -482,7 +482,6 @@ class ExhentaiSearchExtractor(ExhentaiExtractor):
def __init__(self, match): def __init__(self, match):
ExhentaiExtractor.__init__(self, match) ExhentaiExtractor.__init__(self, match)
self.search_url = self.root
_, query, tag = match.groups() _, query, tag = match.groups()
if tag: if tag:
@@ -497,6 +496,9 @@ class ExhentaiSearchExtractor(ExhentaiExtractor):
if "next" not in self.params: if "next" not in self.params:
self.params["page"] = text.parse_int(self.params.get("page")) self.params["page"] = text.parse_int(self.params.get("page"))
def _init(self):
self.search_url = self.root
def items(self): def items(self):
self.login() self.login()
data = {"_extractor": ExhentaiGalleryExtractor} data = {"_extractor": ExhentaiGalleryExtractor}
@@ -542,6 +544,5 @@ class ExhentaiFavoriteExtractor(ExhentaiSearchExtractor):
"&f_apply=Search+Favorites"), "&f_apply=Search+Favorites"),
) )
def __init__(self, match): def _init(self):
ExhentaiSearchExtractor.__init__(self, match)
self.search_url = self.root + "/favorites.php" self.search_url = self.root + "/favorites.php"