ok
Browse files- lib/all.js +3 -8
- package.json +1 -1
- plugins/alldownloader.js +2 -7
lib/all.js
CHANGED
@@ -18,6 +18,7 @@ import { TeraboxDownloader, TeraboxV2Downloader } from '../lib/@randydev/terabox
|
|
18 |
import * as igdlv2 from "instagram-url-direct";
|
19 |
import * as xpro from 'xnxx-scraper';
|
20 |
import * as happykntl from 'happy-dl';
|
|
|
21 |
|
22 |
import { igdl } from 'ruhend-scraper'
|
23 |
import fs from "fs";
|
@@ -124,14 +125,8 @@ function generateRandomTimestamp() {
|
|
124 |
}
|
125 |
|
126 |
async function FBDownloaderV2(url) {
|
127 |
-
|
128 |
-
|
129 |
-
console.log(results);
|
130 |
-
return results;
|
131 |
-
} catch (error) {
|
132 |
-
console.error(error);
|
133 |
-
return null;
|
134 |
-
}
|
135 |
}
|
136 |
|
137 |
|
|
|
18 |
import * as igdlv2 from "instagram-url-direct";
|
19 |
import * as xpro from 'xnxx-scraper';
|
20 |
import * as happykntl from 'happy-dl';
|
21 |
+
import * as lubacotscaper from "scraper-sosmed";
|
22 |
|
23 |
import { igdl } from 'ruhend-scraper'
|
24 |
import fs from "fs";
|
|
|
125 |
}
|
126 |
|
127 |
async function FBDownloaderV2(url) {
|
128 |
+
console.log(lubacotscaper):
|
129 |
+
return {"status": "ok"}
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
}
|
131 |
|
132 |
|
package.json
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
"gifted-dls": "*",
|
20 |
"buffer": "*",
|
21 |
"another-fb-video-downloader": "*",
|
22 |
-
"
|
23 |
"happy-dl": "*",
|
24 |
"mongoose": "*",
|
25 |
"multer": "*",
|
|
|
19 |
"gifted-dls": "*",
|
20 |
"buffer": "*",
|
21 |
"another-fb-video-downloader": "*",
|
22 |
+
"scraper-sosmed": "*",
|
23 |
"happy-dl": "*",
|
24 |
"mongoose": "*",
|
25 |
"multer": "*",
|
plugins/alldownloader.js
CHANGED
@@ -91,14 +91,9 @@ async function downloadMedia(media) {
|
|
91 |
* 500:
|
92 |
* description: Internal Server Error
|
93 |
*/
|
94 |
-
AllDlRoutes.get('/api/v1/dl/fb-v2',
|
95 |
try {
|
96 |
-
const q = req.query.url;
|
97 |
-
|
98 |
-
if (!q) {
|
99 |
-
return res.status(400).json({ error: "url parameter is required." });
|
100 |
-
}
|
101 |
-
const results = await FBDownloaderV2(q);
|
102 |
res.json({ message: results });
|
103 |
} catch (error) {
|
104 |
res.status(500).json({ error: error.message });
|
|
|
91 |
* 500:
|
92 |
* description: Internal Server Error
|
93 |
*/
|
94 |
+
AllDlRoutes.get('/api/v1/dl/fb-v2', apiLimiter, async (req, res) => {
|
95 |
try {
|
96 |
+
// const q = req.query.url;
|
|
|
|
|
|
|
|
|
|
|
97 |
res.json({ message: results });
|
98 |
} catch (error) {
|
99 |
res.status(500).json({ error: error.message });
|