Embedded player: Display the show name during master/show source
This commit is contained in:
parent
e73a6df796
commit
85cc373328
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue