From da87a5fb7e71d7c6f803f95eda338ebeb9f0faf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Tue, 15 Sep 2020 18:09:50 +0200 Subject: [PATCH] [exhentai] fix accessing config before main constructor bug introduced with 055c32e0 Making 'Extractor.config()' quite a bit faster is worth the "cost" of having to set _cfgpath in exhentai constructors, I think. --- gallery_dl/extractor/exhentai.py | 3 +++ 1 file changed, 3 insertions(+) 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":