randydev commited on
Commit
2c5dd13
·
verified ·
1 Parent(s): 78a5396

Update plugins/alldownloader.js

Browse files
Files changed (1) hide show
  1. plugins/alldownloader.js +2 -1
plugins/alldownloader.js CHANGED
@@ -12,6 +12,7 @@ const AllDlRoutes = express.Router();
12
  async function downloadMedia(media) {
13
  const downloadResults = {};
14
  try {
 
15
  if (media.video && media.video['720p']) {
16
  const videoQuality = '720p';
17
  const videoDownloadUrl = await media.video[videoQuality].download();
@@ -21,7 +22,7 @@ async function downloadMedia(media) {
21
  };
22
  } else {
23
  console.error("720p video quality is not available.");
24
- }
25
 
26
  if (media.audio && Object.keys(media.audio).length > 0) {
27
  const audioQuality = Object.keys(media.audio)[0];
 
12
  async function downloadMedia(media) {
13
  const downloadResults = {};
14
  try {
15
+ /*
16
  if (media.video && media.video['720p']) {
17
  const videoQuality = '720p';
18
  const videoDownloadUrl = await media.video[videoQuality].download();
 
22
  };
23
  } else {
24
  console.error("720p video quality is not available.");
25
+ }*/
26
 
27
  if (media.audio && Object.keys(media.audio).length > 0) {
28
  const audioQuality = Object.keys(media.audio)[0];