mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-28 18:29:03 +01:00
download owo
This commit is contained in:
parent
810d1a5dde
commit
0f2621c41c
1 changed files with 6 additions and 2 deletions
|
@ -330,8 +330,12 @@ app.get("/", async function (req, res) {
|
|||
app.get("/api/video/download", async function (req, res) {
|
||||
var v = req.query.v;
|
||||
var fetching = await fetcher(v);
|
||||
const url = fetching.video.Player.Formats.Format[1].URL;
|
||||
res.redirect(url);
|
||||
|
||||
const json = fetching.video.Player;
|
||||
|
||||
const url = `https://tube.kuylar.dev/proxy/download/${v}/22/${json.title}.mp4`
|
||||
|
||||
res.redirect(url)
|
||||
});
|
||||
|
||||
app.get("/api/video/downloadjson", async function (req, res) {
|
||||
|
|
Loading…
Reference in a new issue