[deviantart] provide 'extension' for original file downloads

(#1272)
This commit is contained in:
Mike Fährmann
2021-01-25 19:11:00 +01:00
parent 24e8e398e0
commit c26de0929d

View File

@@ -176,10 +176,11 @@ class DeviantartExtractor(Extractor):
@staticmethod
def commit(deviation, target):
url = target["src"]
name = target.get("filename") or url
target = target.copy()
target["filename"] = deviation["filename"]
deviation["target"] = target
deviation["extension"] = target["extension"] = text.ext_from_url(url)
deviation["extension"] = target["extension"] = text.ext_from_url(name)
return Message.Url, url, deviation
def _commit_journal_html(self, deviation, journal):