ok
Browse files- plugins/alldownloader.js +0 -45
plugins/alldownloader.js
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
import express from 'express';
|
2 |
import { Database } from '../database/database.js';
|
3 |
-
import got from "got";
|
4 |
import {
|
5 |
facebookdl,
|
6 |
savefrom,
|
@@ -26,7 +25,6 @@ import {
|
|
26 |
XInfoDownloaderV2,
|
27 |
SeachTiktok,
|
28 |
TelegramUseLog,
|
29 |
-
generateRandomTimestamp,
|
30 |
} from '../lib/all.js';
|
31 |
|
32 |
import { authenticateApiKey, apiLimiter } from '../middleware/midware.js';
|
@@ -63,49 +61,6 @@ async function downloadMedia(media) {
|
|
63 |
}
|
64 |
}
|
65 |
|
66 |
-
AllDlRoutes.post("/api/v1/dl/savefrom-convert", async (req, res) => {
|
67 |
-
try {
|
68 |
-
const url = "https://api.savefrom.app/api/convert";
|
69 |
-
|
70 |
-
const payload = {
|
71 |
-
url: req.body.url || "https://youtu.be/HLawSES6NFo?si=mKcd9mRSl0XsSQyf",
|
72 |
-
ts: generateRandomTimestamp(),
|
73 |
-
_ts: generateRandomTimestamp(),
|
74 |
-
_tsc: 0,
|
75 |
-
_s: "01294d25173ed7832afaa74997b4c52579ac7fb4a4f98c7a115f44336a084c10"
|
76 |
-
};
|
77 |
-
|
78 |
-
const headers = {
|
79 |
-
"authority": "api.savefrom.app",
|
80 |
-
"accept": "application/json, text/plain, */*",
|
81 |
-
"accept-encoding": "gzip, deflate, br, zstd",
|
82 |
-
"accept-language": "id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7",
|
83 |
-
"content-type": "application/json",
|
84 |
-
"dnt": "1",
|
85 |
-
"origin": "https://savefrom.app",
|
86 |
-
"priority": "u=1, i",
|
87 |
-
"referer": "https://savefrom.app/",
|
88 |
-
"sec-ch-ua": `"Not(A:Brand";v="99", "Google Chrome";v="133", "Chromium";v="133"`,
|
89 |
-
"sec-ch-ua-mobile": "?0",
|
90 |
-
"sec-ch-ua-platform": `"Windows"`,
|
91 |
-
"sec-fetch-dest": "empty",
|
92 |
-
"sec-fetch-mode": "cors",
|
93 |
-
"sec-fetch-site": "same-site",
|
94 |
-
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"
|
95 |
-
};
|
96 |
-
|
97 |
-
const response = await got.post(url, {
|
98 |
-
json: payload,
|
99 |
-
headers: headers,
|
100 |
-
responseType: "json"
|
101 |
-
});
|
102 |
-
|
103 |
-
res.json(response.body);
|
104 |
-
} catch (error) {
|
105 |
-
res.status(500).json({ error: error.message });
|
106 |
-
}
|
107 |
-
});
|
108 |
-
|
109 |
/**
|
110 |
* @swagger
|
111 |
* /api/v1/dl/xnxx-info-v2:
|
|
|
1 |
import express from 'express';
|
2 |
import { Database } from '../database/database.js';
|
|
|
3 |
import {
|
4 |
facebookdl,
|
5 |
savefrom,
|
|
|
25 |
XInfoDownloaderV2,
|
26 |
SeachTiktok,
|
27 |
TelegramUseLog,
|
|
|
28 |
} from '../lib/all.js';
|
29 |
|
30 |
import { authenticateApiKey, apiLimiter } from '../middleware/midware.js';
|
|
|
61 |
}
|
62 |
}
|
63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
/**
|
65 |
* @swagger
|
66 |
* /api/v1/dl/xnxx-info-v2:
|