summaryrefslogtreecommitdiff
path: root/templates/var/www
diff options
context:
space:
mode:
Diffstat (limited to 'templates/var/www')
-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;