fix: [module_extractor] fix onion extraction
Some checks are pending
CI / ail_test (3.10) (push) Waiting to run
CI / ail_test (3.7) (push) Waiting to run
CI / ail_test (3.8) (push) Waiting to run
CI / ail_test (3.9) (push) Waiting to run

This commit is contained in:
terrtia 2024-12-10 11:28:25 +01:00
parent f77c9268bb
commit f7c92348bb
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -56,7 +56,7 @@ class Onion(AbstractModule):
def extract(self, obj, content, tag): def extract(self, obj, content, tag):
extracted = [] extracted = []
if self.obj.type == 'item': if obj.type == 'item':
if 'infoleak:submission="crawler"' in obj.get_tags(): if 'infoleak:submission="crawler"' in obj.get_tags():
return extracted return extracted
onions = self.regex_finditer(self.onion_regex, obj.get_global_id(), content) onions = self.regex_finditer(self.onion_regex, obj.get_global_id(), content)