Embedded player: Display the show name during master/show source

This commit is contained in:
Albert Santoni 2015-04-29 16:03:36 -04:00
parent e73a6df796
commit 85cc373328
1 changed files with 7 additions and 1 deletions

View File

@ -252,7 +252,13 @@
success: function(data) {
if (data.current === null) {
$("p.now_playing").html("Offline");
console.log(data.currentShow);
if (data.currentShow != null) {
//Master/show source have no current track but they do have a current show.
$("p.now_playing").html(data.currentShow[0].name);
} else {
$("p.now_playing").html("Offline");
}
time_to_next_track_starts = 20000;
} else {
var artist = data.current.name.split(" - ")[0];