Spaces:
Paused
Paused
Update index.js
Browse files
index.js
CHANGED
|
@@ -340,6 +340,15 @@ async function Shinigami_download(url) {
|
|
| 340 |
}
|
| 341 |
}
|
| 342 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 343 |
async function komiku_download(url) {
|
| 344 |
const instanceID = generateRandomID();
|
| 345 |
const tempDir = path.join(tempDirBase, instanceID);
|
|
|
|
| 340 |
}
|
| 341 |
}
|
| 342 |
|
| 343 |
+
async function downloadImages(imgList, tempDir, instanceID) {
|
| 344 |
+
const imagePaths = [];
|
| 345 |
+
for (const img of imgList) {
|
| 346 |
+
const imagePath = await downloadImage(img, tempDir, instanceID);
|
| 347 |
+
imagePaths.push(imagePath);
|
| 348 |
+
}
|
| 349 |
+
return imagePaths;
|
| 350 |
+
}
|
| 351 |
+
|
| 352 |
async function komiku_download(url) {
|
| 353 |
const instanceID = generateRandomID();
|
| 354 |
const tempDir = path.join(tempDirBase, instanceID);
|