Nexchan commited on
Commit
2415948
·
verified ·
1 Parent(s): d71e069

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +9 -0
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);