[directlink] fix config lookups by subcategory (#6582)
https://github.com/mikf/gallery-dl/issues/6582#issuecomment-2924143161
This commit is contained in:
@@ -24,9 +24,9 @@ class DirectlinkExtractor(Extractor):
|
||||
example = "https://en.wikipedia.org/static/images/project-logos/enwiki.png"
|
||||
|
||||
def __init__(self, match):
|
||||
Extractor.__init__(self, match)
|
||||
self.data = data = match.groupdict()
|
||||
self.subcategory = ".".join(data["domain"].rsplit(".", 2)[-2:])
|
||||
Extractor.__init__(self, match)
|
||||
|
||||
def items(self):
|
||||
data = self.data
|
||||
|
||||
Reference in New Issue
Block a user