mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 07:58:28 +01:00
owo
This commit is contained in:
parent
9e7e8fda96
commit
972267ef53
1 changed files with 10 additions and 2 deletions
12
server.js
12
server.js
|
@ -162,8 +162,14 @@ app.get("/watch", async function (req, res) {
|
||||||
const video = await fetch(config.tubeApi + `video?v=${v}`);
|
const video = await fetch(config.tubeApi + `video?v=${v}`);
|
||||||
|
|
||||||
const info = await fetch("http://ip-api.com/json/");
|
const info = await fetch("http://ip-api.com/json/");
|
||||||
const n = await info.text();
|
const jj = await info.text();
|
||||||
const ip = JSON.parse(n);
|
const ip = JSON.parse(jj);
|
||||||
|
|
||||||
|
const nightly = await fetch(`https://lighttube-nightly.kuylar.dev/api/video?v=${v}`);
|
||||||
|
var n = await nightly.text().catch(() => null);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var fetching = await fetcher(v);
|
var fetching = await fetcher(v);
|
||||||
|
|
||||||
|
@ -198,6 +204,7 @@ app.get("/watch", async function (req, res) {
|
||||||
// lyrics
|
// lyrics
|
||||||
const lyrics = await lyricsFinder(json.Title);
|
const lyrics = await lyricsFinder(json.Title);
|
||||||
|
|
||||||
|
|
||||||
renderTemplate(res, req, "poketube.ejs", {
|
renderTemplate(res, req, "poketube.ejs", {
|
||||||
url: url_e,
|
url: url_e,
|
||||||
color: await getColors(
|
color: await getColors(
|
||||||
|
@ -218,6 +225,7 @@ app.get("/watch", async function (req, res) {
|
||||||
f: f,
|
f: f,
|
||||||
t: config.t_url,
|
t: config.t_url,
|
||||||
optout: t,
|
optout: t,
|
||||||
|
nigth:JSON.parse(n),
|
||||||
lyrics: "",
|
lyrics: "",
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue