Update plugins/alldownloader.js
Browse files- plugins/alldownloader.js +1 -9
plugins/alldownloader.js
CHANGED
@@ -76,12 +76,6 @@ async function downloadMedia(media) {
|
|
76 |
* description: Additional parameters for the request
|
77 |
* schema:
|
78 |
* type: string
|
79 |
-
* - in: query
|
80 |
-
* name: custom_search
|
81 |
-
* required: false
|
82 |
-
* description: Additional parameters for the request
|
83 |
-
* schema:
|
84 |
-
* type: string
|
85 |
* responses:
|
86 |
* 200:
|
87 |
* description: Success
|
@@ -96,12 +90,10 @@ AllDlRoutes.get('/api/v1/custom/itzpire', apiLimiter, async (req, res) => {
|
|
96 |
try {
|
97 |
const url = req.query.custom_endpoint;
|
98 |
const params = req.query.custom_params;
|
99 |
-
const search = req.query.custom_search;
|
100 |
-
|
101 |
if (!url) {
|
102 |
return res.status(400).json({ error: "parameters are required." });
|
103 |
}
|
104 |
-
const results = await IzreCustom(url, params
|
105 |
res.json({ message: results });
|
106 |
} catch (error) {
|
107 |
res.status(500).json({ error: error.message });
|
|
|
76 |
* description: Additional parameters for the request
|
77 |
* schema:
|
78 |
* type: string
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
* responses:
|
80 |
* 200:
|
81 |
* description: Success
|
|
|
90 |
try {
|
91 |
const url = req.query.custom_endpoint;
|
92 |
const params = req.query.custom_params;
|
|
|
|
|
93 |
if (!url) {
|
94 |
return res.status(400).json({ error: "parameters are required." });
|
95 |
}
|
96 |
+
const results = await IzreCustom(url, params);
|
97 |
res.json({ message: results });
|
98 |
} catch (error) {
|
99 |
res.status(500).json({ error: error.message });
|