[newgrounds] handle embeds without scheme (#1033)

This commit is contained in:
Mike Fährmann
2020-10-12 17:24:07 +02:00
parent 7e0e872f4f
commit 5b844a72b7
3 changed files with 5 additions and 3 deletions

View File

@@ -49,8 +49,8 @@ class NewgroundsExtractor(Extractor):
post["_comment"], 'data-smartload-src="', '"'), 1):
post["num"] = num
post["_index"] = "{}_{:>02}".format(post["index"], num)
text.nameext_from_url(url, post)
yield Message.Url, url, post
url = text.ensure_http_scheme(url)
yield Message.Url, url, text.nameext_from_url(url, post)
else:
self.log.warning(
"Unable to get download URL for '%s'", post_url)