misc.anonradio: try 2

This commit is contained in:
Cynthia Foxwell 2022-08-19 22:54:31 -06:00
parent 947a7baa44
commit 5e97b7e9cf

View file

@ -283,7 +283,9 @@ anonradio.callback = async function (msg, line) {
); );
const icecast = await fetch("http://anonradio.net:8010/status-json.xsl") const icecast = await fetch("http://anonradio.net:8010/status-json.xsl")
.then((res) => res.text()) .then((res) => res.text())
.then((data) => JSON.parse(data.replace(/"title":-,/g, '"title":"-",'))); .then((data) =>
JSON.parse(data.replace(/"title": - ,/g, '"title":" - ",'))
);
let lines = schedule.split("\n"); let lines = schedule.split("\n");
lines = lines.slice(4, lines.length - 2); lines = lines.slice(4, lines.length - 2);