diff --git a/gallery_dl/extractor/exhentai.py b/gallery_dl/extractor/exhentai.py index f5cf63db..cb4df11c 100644 --- a/gallery_dl/extractor/exhentai.py +++ b/gallery_dl/extractor/exhentai.py @@ -34,6 +34,9 @@ class ExhentaiExtractor(Extractor): LIMIT = False def __init__(self, match): + # allow calling 'self.config()' before 'Extractor.__init__()' + self._cfgpath = ("extractor", self.category, self.subcategory) + version = match.group(1) domain = self.config("domain", "auto") if domain == "auto":