Spaces:
Paused
Paused
Update index.js
Browse files
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 {
|