From 5e97b7e9cf6a1f46cef075b8b845bfe015ed551c Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Fri, 19 Aug 2022 22:54:31 -0600 Subject: [PATCH] misc.anonradio: try 2 --- src/modules/misc.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/misc.js b/src/modules/misc.js index 64a6ae2..20a6ba3 100644 --- a/src/modules/misc.js +++ b/src/modules/misc.js @@ -283,7 +283,9 @@ anonradio.callback = async function (msg, line) { ); const icecast = await fetch("http://anonradio.net:8010/status-json.xsl") .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"); lines = lines.slice(4, lines.length - 2);