gone screen

This commit is contained in:
Jeeves 2025-02-19 10:54:32 -07:00
parent 5a70cafef2
commit 5538d4bc8a
4 changed files with 141 additions and 1 deletions

View file

@ -20,6 +20,12 @@ router
.get("/statusline.js", async (ctx) => {
ctx.response.body = await Deno.readFile("web/statusline.js");
})
.get("/gone", async (ctx) => {
ctx.response.body = await Deno.readFile("web/gone.html");
})
.get("/gone.js", async (ctx) => {
ctx.response.body = await Deno.readFile("web/gone.js");
})
.get("/style.css", async (ctx) => {
ctx.response.body = await Deno.readFile("web/style.css");
});
@ -41,7 +47,8 @@ setInterval(async () => {
let songinfo: SongInfo | null = null;
try {
songinfo = await getVlcSongInfo();
} catch {
} catch (e) {
console.log(`getVlcSongInfo() error: ${e}`);
// properly handling this error is by ignoring it,
// since then that leaves songinfo as null,
// and that is guaranteed to be handled correctly.