add 'text.ensure_http_scheme()'

This commit is contained in:
Mike Fährmann
2020-05-19 21:25:07 +02:00
parent 4df2cadf60
commit 6294e2c540
5 changed files with 39 additions and 8 deletions

View File

@@ -126,8 +126,9 @@ class DeviantartExtractor(Extractor):
if self.extra:
for match in DeviantartStashExtractor.pattern.finditer(
deviation.get("description", "")):
url = text.ensure_http_scheme(match.group(0))
deviation["_extractor"] = DeviantartStashExtractor
yield Message.Queue, match.group(0), deviation
yield Message.Queue, url, deviation
def deviations(self):
"""Return an iterable containing all relevant Deviation-objects"""