summaryrefslogtreecommitdiff
path: root/templates/var/www/html/audio-controls.js
diff options
context:
space:
mode:
authorheqnx <root@heqnx.com>2025-07-06 14:57:39 +0300
committerheqnx <root@heqnx.com>2025-07-06 14:57:39 +0300
commita064cbda2086b79b6cc04111cb308a6b2d770aa6 (patch)
tree9b2c6aa08775aaae76420f9ad8d6baaf728bbe24 /templates/var/www/html/audio-controls.js
parent3559ca8a720086f080286e887a29b6fa68810fa9 (diff)
downloadansible-icecast2-a064cbda2086b79b6cc04111cb308a6b2d770aa6.tar.gz
ansible-icecast2-a064cbda2086b79b6cc04111cb308a6b2d770aa6.zip
replaced ices2 which only supports vorbis, with liquidsoap + creation of title metadata; reorganized templates
Diffstat (limited to 'templates/var/www/html/audio-controls.js')
-rw-r--r--templates/var/www/html/audio-controls.js5
1 files changed, 2 insertions, 3 deletions
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;