From 5ca4682c5332e06c524d4ffec591257613db0011 Mon Sep 17 00:00:00 2001 From: Kat21 Date: Sun, 18 Feb 2024 13:50:45 -0800 Subject: [PATCH] Update radio app Fix some minor issues --- pkgs/kat/radio/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/kat/radio/app.js b/pkgs/kat/radio/app.js index aa6a713..e979116 100644 --- a/pkgs/kat/radio/app.js +++ b/pkgs/kat/radio/app.js @@ -46,7 +46,7 @@ export default { "https://ic.cherries.to/icecast-metadata-player-1.13.1.min.js", ); - const album_covers = await fetch("https://ic.cherries.to/album_art.json") + const album_covers = await fetch("https://ic.cherries.to/album_art.json?t=" + Date.now()) .then((j) => j.json()) .catch(console.error); @@ -75,7 +75,7 @@ export default { let station = "radio"; let i = 0; - let stations = ["radio", "synthwave", "wagoogus"]; + let stations = await (await fetch("https://ic.cherries.to/stations.json?t=" + Date.now()).then(t => t.json())); new Html("button") .text("Swap Station")