randydev commited on
Commit
65dfadf
·
verified ·
1 Parent(s): 8b971ea

Update plugins/alldownloader.js

Browse files
Files changed (1) hide show
  1. plugins/alldownloader.js +2 -2
plugins/alldownloader.js CHANGED
@@ -236,7 +236,7 @@ AllDlRoutes.get('/api/v1/dl/youtube', authenticateApiKey, apiLimiter, async (req
236
  console.log(resolutions);
237
 
238
  if (resolutions.length > 0) {
239
- const videoDownload = await results.video[resolutions[0]].download(results.id, results.video[resolutions[0]].k); // Pass necessary parameters
240
  if (videoDownload) {
241
  results.video[resolutions[0]].url = videoDownload;
242
  } else {
@@ -246,7 +246,7 @@ AllDlRoutes.get('/api/v1/dl/youtube', authenticateApiKey, apiLimiter, async (req
246
 
247
  const audioResolutions = Object.keys(results.audio);
248
  if (audioResolutions.length > 0) {
249
- const audioDownload = await results.audio[audioResolutions[0]].download(results.id, results.audio[audioResolutions[0]].k); // Pass necessary parameters
250
  if (audioDownload) {
251
  results.audio[audioResolutions[0]].url = audioDownload;
252
  } else {
 
236
  console.log(resolutions);
237
 
238
  if (resolutions.length > 0) {
239
+ const videoDownload = await results.video[resolutions[0]].download();
240
  if (videoDownload) {
241
  results.video[resolutions[0]].url = videoDownload;
242
  } else {
 
246
 
247
  const audioResolutions = Object.keys(results.audio);
248
  if (audioResolutions.length > 0) {
249
+ const audioDownload = await results.audio[audioResolutions[0]].download();
250
  if (audioDownload) {
251
  results.audio[audioResolutions[0]].url = audioDownload;
252
  } else {