mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
booru: fix pixiv source link
This commit is contained in:
parent
e241366016
commit
ae87af892f
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ const APISERVICES = {
|
|||
|
||||
const getWorkingImageSauce = (url) => {
|
||||
if (url.includes('pximg.net')) {
|
||||
return `https://www.pixiv.net/en/artworks/${url.substring(url.lastIndexOf('/')).replace(/_p\d+\.png$/, '')}`;
|
||||
return `https://www.pixiv.net/en/artworks/${url.substring(url.lastIndexOf('/') + 1).replace(/_p\d+\.(png|jpg|jpeg|gif)$/, '')}`;
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue