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:
parent
f5b7ae01c1
commit
da87a5fb7e
@ -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…
x
Reference in New Issue
Block a user