forked from ChrisChrome/weather-bot
Update
- Use cached URL for nwrstreams
This commit is contained in:
parent
d48fe3085a
commit
aa8fe9498f
4
index.js
4
index.js
|
@ -265,9 +265,9 @@ const curUUID = generateUUID();
|
|||
|
||||
|
||||
// nwrstreams setup
|
||||
// get icecast json data http://ingest.wxr.gwes-cdn.net/status-json.xsl
|
||||
// get icecast json data
|
||||
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) => {
|
||||
json.icestats.source.forEach((source) => {
|
||||
nwrstreams.callsigns[source.server_name] = source.listenurl;
|
||||
|
|
Loading…
Reference in a new issue