[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:
@@ -34,6 +34,9 @@ class ExhentaiExtractor(Extractor):
|
|||||||
LIMIT = False
|
LIMIT = False
|
||||||
|
|
||||||
def __init__(self, match):
|
def __init__(self, match):
|
||||||
|
# allow calling 'self.config()' before 'Extractor.__init__()'
|
||||||
|
self._cfgpath = ("extractor", self.category, self.subcategory)
|
||||||
|
|
||||||
version = match.group(1)
|
version = match.group(1)
|
||||||
domain = self.config("domain", "auto")
|
domain = self.config("domain", "auto")
|
||||||
if domain == "auto":
|
if domain == "auto":
|
||||||
|
|||||||
Reference in New Issue
Block a user