[directlink] use domain as 'subcategory' (#6703)
This commit is contained in:
@@ -25,7 +25,8 @@ class DirectlinkExtractor(Extractor):
|
||||
|
||||
def __init__(self, match):
|
||||
Extractor.__init__(self, match)
|
||||
self.data = match.groupdict()
|
||||
self.data = data = match.groupdict()
|
||||
self.subcategory = ".".join(data["domain"].rsplit(".", 2)[-2:])
|
||||
|
||||
def items(self):
|
||||
data = self.data
|
||||
|
||||
Reference in New Issue
Block a user