diff --git a/gallery_dl/extractor/common.py b/gallery_dl/extractor/common.py index cfdac3ed47..7f787471bb 100644 --- a/gallery_dl/extractor/common.py +++ b/gallery_dl/extractor/common.py @@ -40,6 +40,8 @@ def __init__(self, match): self._cookiefile = None self._cookiejar = self.session.cookies self._parentdir = "" + + self._cfgpath = ("extractor", self.category, self.subcategory) self._write_pages = self.config("write-pages", False) self._retries = self.config("retries", 4) self._timeout = self.config("timeout", 30) @@ -69,12 +71,10 @@ def skip(self, num): return 0 def config(self, key, default=None): - return config.interpolate( - ("extractor", self.category, self.subcategory), key, default) + return config.interpolate(self._cfgpath, key, default) def config_accumulate(self, key): - return config.accumulate( - ("extractor", self.category, self.subcategory), key) + return config.accumulate(self._cfgpath, key) def request(self, url, *, method="GET", session=None, retries=None, encoding=None, fatal=True, notfound=None, **kwargs):