Download images or text from Poipiku
This worked for me. Thank you! Do you know how to fix the renaming?
To fix the issue of saving with an invalid name, replace the two functions as below.
getSaveImageFilename(src, index) {
let cleanSrc = src.split("?")[0];
let suffix = cleanSrc.split(".").splice(-1);
const mode = $saveFileMode.is(":checked");
if (mode) {
return `${website}_${this.workId}_${index + 1}.${suffix}`;
}
return `${index + 1}.${suffix}`;
}
let promises = list.map((src, index) => {
return getBlob(src).then((blob) => {
finishehCount++;
$status.text(`${finishehCount}/${list.length}`);
if (zip) {
folder.file(this.getSaveImageFilename(src, index), blob, {
binary: true,
});
} else {
let cleanSrc = src.split("?")[0];
let suffix = cleanSrc.split(".").splice(-1);
saveAs(
new Blob([blob]),
`${this.saveFilename}_${index + 1}.${suffix}`
);
}
});
});
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址
I've found the way to fix the error "can't create zip file" on another poipiku downloader, thank Shxnyun for this!
find the line that has this
// @connect img-org.poipiku.com
and add this line below
// @connect cdn.poipiku.com
done