download owo

This commit is contained in:
Ashley 2022-08-07 16:16:59 +03:00 committed by GitHub
parent 810d1a5dde
commit 0f2621c41c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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