Update plugins/alldownloader.js
Browse files- plugins/alldownloader.js +2 -4
plugins/alldownloader.js
CHANGED
@@ -1,6 +1,4 @@
|
|
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,8 +88,8 @@ 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 |
-
const results = await xnxxSearch(q);
|
94 |
-
res.json({ message:
|
95 |
// console.dir(testings);
|
96 |
} catch (error) {
|
97 |
res.status(500).json({ error: error.message });
|
|
|
1 |
import express from 'express';
|
|
|
|
|
2 |
import {
|
3 |
facebookdl,
|
4 |
savefrom,
|
|
|
88 |
return res.status(400).json({ error: "URL parameter is required." });
|
89 |
}
|
90 |
// const results = await testings.default.search(q);
|
91 |
+
// const results = await xnxxSearch(q);
|
92 |
+
res.json({ message: "ok" });
|
93 |
// console.dir(testings);
|
94 |
} catch (error) {
|
95 |
res.status(500).json({ error: error.message });
|