mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-27 06:38:46 +01:00
remove /old
This commit is contained in:
parent
ecdc887ff8
commit
981a63c4d5
1 changed files with 1 additions and 19 deletions
20
server.js
20
server.js
|
@ -361,26 +361,8 @@ app.get("/old/watch", async function (req, res) {
|
|||
var v = req.query.v;
|
||||
var e = req.query.e;
|
||||
if (!v) res.redirect("/");
|
||||
var fetching = await fetcher(v);
|
||||
const j = fetching.video.Player.Formats.Format,
|
||||
j_ = Array.isArray(j) ? j[j.length - 1] : j;
|
||||
let url;
|
||||
if (j_.URL != undefined) url = j_.URL;
|
||||
const json = fetching.video.Player;
|
||||
const engagement = fetching.engagement;
|
||||
const lyrics = ""
|
||||
|
||||
renderTemplate(res, req, "poketube-old.ejs", {
|
||||
url: url,
|
||||
color: await getColors(
|
||||
`https://i.ytimg.com/vi/${v}/maxresdefault.jpg`
|
||||
).then((colors) => colors[0].hex()),
|
||||
engagement: engagement,
|
||||
video: json,
|
||||
date: "see the new ui", //return ""
|
||||
e: e,
|
||||
lyrics: "none, see the new ui",
|
||||
});
|
||||
res.redirect(`/watch?v=${v}`);
|
||||
});
|
||||
|
||||
app.get("/discover", async function (req, res) {
|
||||
|
|
Loading…
Reference in a new issue