mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-23 11:12:40 +01:00
[pixiv] include '.gif' in background fallback URLs (#2495)
This commit is contained in:
parent
57508d3bb7
commit
345199a3ec
@ -263,7 +263,8 @@ class PixivBackgroundExtractor(PixivExtractor):
|
|||||||
url = url.replace("_master1200.", ".")
|
url = url.replace("_master1200.", ".")
|
||||||
work = self._make_work("background", url, detail["user"])
|
work = self._make_work("background", url, detail["user"])
|
||||||
if url.endswith(".jpg"):
|
if url.endswith(".jpg"):
|
||||||
work["_fallback"] = (url[:-4] + ".png",)
|
url = url[:-4]
|
||||||
|
work["_fallback"] = (url + ".png", url + ".gif")
|
||||||
return (work,)
|
return (work,)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user