1
Fork 0

Update server.js

This commit is contained in:
Ashley 2022-07-22 00:02:38 +03:00 committed by GitHub
parent e7697ef77a
commit 916fd8bfa1

View file

@ -66,6 +66,7 @@ app.get("/watch", async function (req, res) {
var f = req.query.f;
var t = req.query.t;
const video = await fetch(config.tubeApi + `video?v=${v}`);
const h = await video.text();
const k = JSON.parse(toJson(h));
if (!v) res.redirect("/");