mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-01 10:27:22 +01: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 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("/");
|
||||
|
|
Loading…
Reference in a new issue