1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2025-01-31 11:41:35 +01:00

[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.
This commit is contained in:
Mike Fährmann 2020-09-15 18:09:50 +02:00
parent f5b7ae01c1
commit da87a5fb7e
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -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":