diff options
author | heqnx <root@heqnx.com> | 2025-07-06 14:57:39 +0300 |
---|---|---|
committer | heqnx <root@heqnx.com> | 2025-07-06 14:57:39 +0300 |
commit | a064cbda2086b79b6cc04111cb308a6b2d770aa6 (patch) | |
tree | 9b2c6aa08775aaae76420f9ad8d6baaf728bbe24 /templates/var/www/html/audio-controls.js | |
parent | 3559ca8a720086f080286e887a29b6fa68810fa9 (diff) | |
download | ansible-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.js | 5 |
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; |