fix radio

This commit is contained in:
2025-11-26 01:13:54 +00:00
parent cb3487d370
commit f79e74984d

View File

@@ -18,7 +18,7 @@ const checkStream = async () => {
const res = await fetch("/radio/status-json.xsl"); // Icecast JSON status const res = await fetch("/radio/status-json.xsl"); // Icecast JSON status
const data = await res.json(); const data = await res.json();
// Replace 'mounts' and '/stream' with your Icecast mountpoint // Replace 'mounts' and '/stream' with your Icecast mountpoint
streamMount.value = data.icestats.source[0].listenurl.split("/").pop(); streamMount.value = data.icestats.source.listenurl.split("/").pop();
if (streamMount.value) { if (streamMount.value) {
streamLive.value = true; streamLive.value = true;