Update plugins/alldownloader.js
Browse files- 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(
|
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(
|
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 {
|