Browse Source

adding other masterStreams again

pull/1/head
IngridRegina 5 years ago
parent
commit
4416f0452e
  1. 5
      script.js

5
script.js

@ -32,7 +32,7 @@ function update_field(field, data){ @@ -32,7 +32,7 @@ function update_field(field, data){
function update_listeners(json_obj){
var nowPlaying = getFirstPlaying(json_obj);
if(nowPlaying != null) {
if (nowPlaying != null) {
update_field('listeners1', nowPlaying.listeners);
}
}
@ -54,6 +54,9 @@ function getFirstPlaying(jsonObj){ @@ -54,6 +54,9 @@ function getFirstPlaying(jsonObj){
var sources = jsonObj.icestats.source;
var masterStreams = [
'/live',
'/sai',
'/siinus',
'/viido',
]
for(o=0; o < sources.length; o++) {

Loading…
Cancel
Save