mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 04:18:55 +01:00
Update server.js
This commit is contained in:
parent
e7697ef77a
commit
916fd8bfa1
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