randydev commited on
Commit
c12ac27
·
verified ·
1 Parent(s): a51cfd1

Update plugins/alldownloader.js

Browse files
Files changed (1) hide show
  1. plugins/alldownloader.js +3 -2
plugins/alldownloader.js CHANGED
@@ -1,5 +1,6 @@
1
  import express from 'express';
2
- import * as testings from 'xnxx-scraper';
 
3
  import {
4
  facebookdl,
5
  savefrom,
@@ -89,7 +90,7 @@ AllDlRoutes.get('/api/v1/dl/xnxxsearch-v2', apiLimiter, async (req, res) => {
89
  return res.status(400).json({ error: "URL parameter is required." });
90
  }
91
  // const results = await testings.default.search(q);
92
- const results = await testings.xnxxSearch(q);
93
  res.json({ message: results });
94
  // console.dir(testings);
95
  } catch (error) {
 
1
  import express from 'express';
2
+ // import * as testings from 'xnxx-scraper';
3
+ const { xnxxSearch, xnxxDownload } = await import('xnxx-scraper');
4
  import {
5
  facebookdl,
6
  savefrom,
 
90
  return res.status(400).json({ error: "URL parameter is required." });
91
  }
92
  // const results = await testings.default.search(q);
93
+ const results = await xnxxSearch(q);
94
  res.json({ message: results });
95
  // console.dir(testings);
96
  } catch (error) {