mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-28 20:29:03 +01:00
remove /old
This commit is contained in:
parent
b3bc8aa73e
commit
264b1349a4
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 v = req.query.v;
|
||||||
var e = req.query.e;
|
var e = req.query.e;
|
||||||
if (!v) res.redirect("/");
|
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", {
|
res.redirect(`/watch?v=${v}`);
|
||||||
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",
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get("/discover", async function (req, res) {
|
app.get("/discover", async function (req, res) {
|
||||||
|
|
Loading…
Reference in a new issue