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:
parent
a820328c29
commit
77d6282fb9
1 changed files with 1 additions and 0 deletions
|
@ -66,6 +66,7 @@ app.get("/watch", async function (req, res) {
|
||||||
var f = req.query.f;
|
var f = req.query.f;
|
||||||
var t = req.query.t;
|
var t = req.query.t;
|
||||||
const video = await fetch(config.tubeApi + `video?v=${v}`);
|
const video = await fetch(config.tubeApi + `video?v=${v}`);
|
||||||
|
|
||||||
const h = await video.text();
|
const h = await video.text();
|
||||||
const k = JSON.parse(toJson(h));
|
const k = JSON.parse(toJson(h));
|
||||||
if (!v) res.redirect("/");
|
if (!v) res.redirect("/");
|
||||||
|
|
Loading…
Reference in a new issue