various fixes

This commit is contained in:
bkfox
2017-08-30 18:30:19 +02:00
parent 4525e4952b
commit d470ca39e6
4 changed files with 35 additions and 8 deletions

View File

@ -348,7 +348,7 @@ Player.prototype = {
var self = this;
window.setTimeout(function() {
self.update_on_air();
}, 60*2000);
}, 60*5000);
if(!this.playlist.on_air)
return;
@ -360,6 +360,9 @@ Player.prototype = {
req.status != 0))
return;
if(!req.responseText.length)
return;
var data = JSON.parse(req.responseText)
if(data.type == 'track')
data = {