From a064cbda2086b79b6cc04111cb308a6b2d770aa6 Mon Sep 17 00:00:00 2001 From: heqnx Date: Sun, 6 Jul 2025 14:57:39 +0300 Subject: replaced ices2 which only supports vorbis, with liquidsoap + creation of title metadata; reorganized templates --- templates/var/www/html/audio-controls.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'templates/var') diff --git a/templates/var/www/html/audio-controls.js b/templates/var/www/html/audio-controls.js index 3b0a0c1..7f488f8 100644 --- a/templates/var/www/html/audio-controls.js +++ b/templates/var/www/html/audio-controls.js @@ -42,13 +42,12 @@ async function fetchCurrentTrack() { const data = await response.json(); const source = data.icestats.source; - const title = source.title || 'Unknown'; - const bitrate = source['ice-bitrate'] || 0; + const title = source.title || 'unknown'; const listeners = source.listeners || 0; const listenerLabel = listeners === 1 ? 'listener' : 'listeners'; stopSpinner(); - infoEl.textContent = `${title} | ${bitrate} kbps | ${listeners} ${listenerLabel}`; + infoEl.textContent = `${title} | ${listeners} ${listenerLabel}`; spinnerHasRun = true; -- cgit v1.2.3