Update server.js
Browse files
server.js
CHANGED
@@ -30,7 +30,7 @@ const scheduleFileDeletion = (filePath, delay = 600000) => {
|
|
30 |
|
31 |
const downloadFile = (fileUrl, filePath) => {
|
32 |
return new Promise((resolve, reject) => {
|
33 |
-
const aria2Command = `aria2c
|
34 |
console.log(`π Starting fast download: ${aria2Command}`);
|
35 |
|
36 |
exec(aria2Command, (error, stdout, stderr) => {
|
|
|
30 |
|
31 |
const downloadFile = (fileUrl, filePath) => {
|
32 |
return new Promise((resolve, reject) => {
|
33 |
+
const aria2Command = `aria2c -x 16 -s 16 -k 1M --check-certificate=false -o "${filePath}" "${fileUrl}"`;
|
34 |
console.log(`π Starting fast download: ${aria2Command}`);
|
35 |
|
36 |
exec(aria2Command, (error, stdout, stderr) => {
|