[generic] fix config lookups by subcategory

'subcategory' needs to be set before Extractor.__init__() runs
to be included in '_cfgpath'
This commit is contained in:
Mike Fährmann
2025-02-21 22:00:24 +01:00
parent 79dc04d87c
commit 4906541f7d

View File

@@ -37,6 +37,7 @@ class GenericExtractor(Extractor):
example = "generic:https://www.nongnu.org/lzip/"
def __init__(self, match):
self.subcategory = match.group('domain')
Extractor.__init__(self, match)
# Strip the "g(eneric):" prefix
@@ -54,7 +55,6 @@ class GenericExtractor(Extractor):
self.scheme = 'https://'
self.url = text.ensure_http_scheme(self.url, self.scheme)
self.subcategory = match.group('domain')
self.path = match.group('path')
# Used to resolve relative image urls