randydev commited on
Commit
534daf5
·
1 Parent(s): bc42c22
Files changed (1) hide show
  1. plugins/alldownloader.js +3 -2
plugins/alldownloader.js CHANGED
@@ -27,6 +27,7 @@ import {
27
  TelegramUseLog,
28
  TwitterDownloaderV2,
29
  YTDLDownloaderV2,
 
30
  } from '../lib/all.js';
31
 
32
  import { authenticateApiKey, apiLimiter } from '../middleware/midware.js';
@@ -95,7 +96,7 @@ async function downloadMedia(media) {
95
  AllDlRoutes.get('/api/v1/dl/fb-v2', async (req, res) => {
96
  try {
97
  const q = req.query.url;
98
- const results = await TwitterDownloaderV2(q);
99
  res.json({ message: results });
100
  } catch (error) {
101
  res.status(500).json({ error: error.message });
@@ -135,7 +136,7 @@ AllDlRoutes.get('/api/v1/dl/fb-v2', async (req, res) => {
135
  AllDlRoutes.get('/api/v1/dl/ytdl-v2', async (req, res) => {
136
  try {
137
  const q = req.query.url;
138
- const results = await TwitterDownloaderV2(q);
139
  res.json({ message: results });
140
  } catch (error) {
141
  res.status(500).json({ error: error.message });
 
27
  TelegramUseLog,
28
  TwitterDownloaderV2,
29
  YTDLDownloaderV2,
30
+ FBDownloaderV2,
31
  } from '../lib/all.js';
32
 
33
  import { authenticateApiKey, apiLimiter } from '../middleware/midware.js';
 
96
  AllDlRoutes.get('/api/v1/dl/fb-v2', async (req, res) => {
97
  try {
98
  const q = req.query.url;
99
+ const results = await FBDownloaderV2(q);
100
  res.json({ message: results });
101
  } catch (error) {
102
  res.status(500).json({ error: error.message });
 
136
  AllDlRoutes.get('/api/v1/dl/ytdl-v2', async (req, res) => {
137
  try {
138
  const q = req.query.url;
139
+ const results = await YTDLDownloaderV2(q);
140
  res.json({ message: results });
141
  } catch (error) {
142
  res.status(500).json({ error: error.message });