randydev commited on
Commit
8306a43
·
verified ·
1 Parent(s): c66c210

Update plugins/alldownloader.js

Browse files
Files changed (1) hide show
  1. plugins/alldownloader.js +3 -2
plugins/alldownloader.js CHANGED
@@ -128,8 +128,9 @@ AllDlRoutes.get('/api/v1/dl/twitterdl', authenticateApiKey, apiLimiter, async (r
128
  return res.status(400).json({ error: "URL parameter is required." });
129
  }
130
 
131
- const results = await twitterdl(url);
132
- console.log(results);
 
133
  res.json({ results });
134
  } catch (error) {
135
  res.status(500).json({ error: error.message });
 
128
  return res.status(400).json({ error: "URL parameter is required." });
129
  }
130
 
131
+ const videoVariants = await twitterdl(url);
132
+ const results = { videos: videoVariants };
133
+
134
  res.json({ results });
135
  } catch (error) {
136
  res.status(500).json({ error: error.message });