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