Update
Some checks failed
ptero-push / build (push) Has been cancelled

- Use cached URL for nwrstreams
This commit is contained in:
Christopher Cookman 2024-08-16 03:11:16 -06:00
parent d48fe3085a
commit aa8fe9498f
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -265,9 +265,9 @@ const curUUID = generateUUID();
// nwrstreams setup // nwrstreams setup
// get icecast json data http://ingest.wxr.gwes-cdn.net/status-json.xsl // get icecast json data
const fetchNWRstreams = () => { const fetchNWRstreams = () => {
fetch("http://ingest.wxr.gwes-cdn.net/status-json.xsl").then((res) => { fetch("https://icestats.weatherradio.org/").then((res) => {
res.json().then((json) => { res.json().then((json) => {
json.icestats.source.forEach((source) => { json.icestats.source.forEach((source) => {
nwrstreams.callsigns[source.server_name] = source.listenurl; nwrstreams.callsigns[source.server_name] = source.listenurl;