download owo

This commit is contained in:
Ashley 2022-08-07 16:16:59 +03:00 committed by GitHub
parent dfe7e0868f
commit a0b0f1c33c

View file

@ -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) {