mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-17 04:14:39 -05:00
yes
This commit is contained in:
parent
5795f28dd9
commit
b4301333a0
1 changed files with 8 additions and 4 deletions
|
@ -338,14 +338,18 @@ app.get("/", async function (req, res) {
|
||||||
app.get("/api/video/download", async function (req, res) {
|
app.get("/api/video/download", async function (req, res) {
|
||||||
var v = req.query.v;
|
var v = req.query.v;
|
||||||
|
|
||||||
|
var format = "mp4"
|
||||||
var q = "22";
|
var q = "22";
|
||||||
if (req.query.q) q = req.query.q;
|
if (req.query.q) q = req.query.q;
|
||||||
|
if( req.query.f) {
|
||||||
|
var format = "mp3"
|
||||||
|
}
|
||||||
var fetching = await fetcher(v);
|
var fetching = await fetcher(v);
|
||||||
|
|
||||||
const json = fetching.video.Player;
|
const json = fetching.video.Player;
|
||||||
|
|
||||||
const url = `https://tube.kuylar.dev/proxy/download/${v}/${q}/${json.Title}.mp4`;
|
|
||||||
|
const url = `https://tube.kuylar.dev/proxy/download/${v}/${q}/${json.Title}.${format}`;
|
||||||
|
|
||||||
res.redirect(url)
|
res.redirect(url)
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue