summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/pixiv.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/pixiv.py')
-rw-r--r--gallery_dl/extractor/pixiv.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gallery_dl/extractor/pixiv.py b/gallery_dl/extractor/pixiv.py
index 9b35e42..f19e008 100644
--- a/gallery_dl/extractor/pixiv.py
+++ b/gallery_dl/extractor/pixiv.py
@@ -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,)