[directlink] fix config lookups by subcategory (#6582)

https://github.com/mikf/gallery-dl/issues/6582#issuecomment-2924143161
This commit is contained in:
Mike Fährmann
2025-05-31 09:12:05 +02:00
parent 8adf48316f
commit 5b6bccd4c3

View File

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