[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.
pull/997/head
Mike Fährmann 4 years ago
parent f5b7ae01c1
commit da87a5fb7e
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

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

Loading…
Cancel
Save