diff --git a/src/modules/misc.js b/src/modules/misc.js index 5032a70..64a6ae2 100644 --- a/src/modules/misc.js +++ b/src/modules/misc.js @@ -281,9 +281,9 @@ anonradio.callback = async function (msg, line) { const schedule = await fetch("https://anonradio.net/schedule/").then((res) => res.text() ); - const icecast = await fetch("http://anonradio.net:8010/status-json.xsl").then( - (res) => res.json() - ); + const icecast = await fetch("http://anonradio.net:8010/status-json.xsl") + .then((res) => res.text()) + .then((data) => JSON.parse(data.replace(/"title":-,/g, '"title":"-",'))); let lines = schedule.split("\n"); lines = lines.slice(4, lines.length - 2);