From baececcdc37385a007ddfafbc6d06e3a274f76af Mon Sep 17 00:00:00 2001 From: Ashley Date: Sun, 4 Sep 2022 09:31:02 +0200 Subject: [PATCH] qwq --- server.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index c4d27832..22215ccf 100644 --- a/server.js +++ b/server.js @@ -169,7 +169,16 @@ app.get("/watch", async function (req, res) { var n = await nightly.text().catch(() => null); + + var nn = ""; + if (n === null) { + nn = ""; + } + + if (n) { + nn = JSON.parse(n); + } var fetching = await fetcher(v); @@ -225,7 +234,7 @@ app.get("/watch", async function (req, res) { f: f, t: config.t_url, optout: t, - nigth:JSON.parse(n), + nigth:nn, lyrics: "", }); });