Skip to content

Commit

Permalink
Fix GIF not mapped to ZIP properly in Pixiv ugoira
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed May 14, 2022
1 parent 74d3095 commit b7b6adc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sites/Pixiv/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ function parseImage(image: any, fromGallery: boolean): IImage {
img.sample_url = img.file_url;
img.file_url = img.file_url
.replace("img-original", "img-zip-ugoira")
.replace(/ugoira0\.(jpe?g|png|webp)/, "ugoira1920x1080.zip");
}
.replace(/ugoira0\.(jpe?g|png|webp|gif)/, "ugoira1920x1080.zip");
}

return img;
}
Expand Down

0 comments on commit b7b6adc

Please sign in to comment.