Update server.js
Browse files
server.js
CHANGED
@@ -28,7 +28,7 @@ const scheduleFileDeletion = (filePath, delay = 600000) => {
|
|
28 |
|
29 |
// Function to download file using aria2c (super fast)
|
30 |
|
31 |
-
const
|
32 |
return new Promise((resolve, reject) => {
|
33 |
const aria2Command = `aria2c --allow-insecure -x 16 -s 16 -k 1M -o "${filePath}" "${fileUrl}"`;
|
34 |
console.log(`π Starting fast download: ${aria2Command}`);
|
|
|
28 |
|
29 |
// Function to download file using aria2c (super fast)
|
30 |
|
31 |
+
const downloadFile = (fileUrl, filePath) => {
|
32 |
return new Promise((resolve, reject) => {
|
33 |
const aria2Command = `aria2c --allow-insecure -x 16 -s 16 -k 1M -o "${filePath}" "${fileUrl}"`;
|
34 |
console.log(`π Starting fast download: ${aria2Command}`);
|