Reaperxxxx commited on
Commit
7b1a290
Β·
verified Β·
1 Parent(s): ad4d91f

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +1 -1
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 downloadWithAria2 = (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}`);
 
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}`);