fix radio
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user