This commit is contained in:
Ashley 2022-09-04 09:31:02 +02:00
parent 8d65afa71b
commit baececcdc3

View file

@ -169,7 +169,16 @@ app.get("/watch", async function (req, res) {
var n = await nightly.text().catch(() => null); var n = await nightly.text().catch(() => null);
var nn = "";
if (n === null) {
nn = "";
}
if (n) {
nn = JSON.parse(n);
}
var fetching = await fetcher(v); var fetching = await fetcher(v);
@ -225,7 +234,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), nigth:nn,
lyrics: "", lyrics: "",
}); });
}); });