Nexchan commited on
Commit
c8b8762
·
verified ·
1 Parent(s): bfdcc7a

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +4 -0
index.js CHANGED
@@ -368,6 +368,8 @@ async function komiku_download(url) {
368
  const src = $(element).attr('src');
369
  imgList.push({ path: src });
370
  });
 
 
371
 
372
  await processImages(imgList, tempDir, instanceID);
373
  const pdfPath = await createPDF(instanceID, tempDir);
@@ -446,6 +448,8 @@ async function createPDF(instanceID, tempDir) {
446
  return pdfPath;
447
  }
448
 
 
 
449
 
450
  app.get('/komiku/download', async (req, res) => {
451
  try {
 
368
  const src = $(element).attr('src');
369
  imgList.push({ path: src });
370
  });
371
+
372
+ console.log(imgList)
373
 
374
  await processImages(imgList, tempDir, instanceID);
375
  const pdfPath = await createPDF(instanceID, tempDir);
 
448
  return pdfPath;
449
  }
450
 
451
+ // Express setup
452
+ const app = express();
453
 
454
  app.get('/komiku/download', async (req, res) => {
455
  try {