Use better album art parameter name for JSON object response
This commit is contained in:
parent
b339af3103
commit
d793790fe5
|
@ -35,7 +35,7 @@ $firstsong = true;
|
|||
while ( $row = $sth->fetch() ) {
|
||||
$song = new Song($row['songid']);
|
||||
if ( $firstsong ) {
|
||||
$data['currentsong']["art"] = $song->getArtFile(ARTURL);
|
||||
$data['currentsong']["arturl"] = $song->getArtFile(ARTURL);
|
||||
$data['currentsong']["title"] = $song->getTitle(HTMLSAFE);
|
||||
$data['currentsong']["artist"] = $song->getArtist(HTMLSAFE);
|
||||
$data['currentsong']["album"] = $song->getAlbum(HTMLSAFE);
|
||||
|
|
|
@ -191,7 +191,7 @@ function getSongList() {
|
|||
$('#volume_slider').slider("value", data.volume);
|
||||
}
|
||||
$('#history_contents').html(data.songlist);
|
||||
$('#playing_img').attr("src", data.currentsong.art);
|
||||
$('#playing_img').attr("src", data.currentsong.arturl);
|
||||
$('#playing_title').html(data.currentsong.title);
|
||||
$('#playing_artist').html(data.currentsong.artist);
|
||||
$('#playing_album').html(data.currentsong.album);
|
||||
|
|
Loading…
Reference in New Issue
Block a user