1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 09:34:41 -05:00

Update server.js

This commit is contained in:
Ashley 2022-07-22 00:02:38 +03:00 committed by GitHub
parent a820328c29
commit 77d6282fb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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("/");