[pixiv] include '.gif' in background fallback URLs (#2495)

pull/2655/head
Mike Fährmann 2 years ago
parent 57508d3bb7
commit 345199a3ec
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -263,7 +263,8 @@ class PixivBackgroundExtractor(PixivExtractor):
url = url.replace("_master1200.", ".")
work = self._make_work("background", url, detail["user"])
if url.endswith(".jpg"):
work["_fallback"] = (url[:-4] + ".png",)
url = url[:-4]
work["_fallback"] = (url + ".png", url + ".gif")
return (work,)

Loading…
Cancel
Save