diff --git a/ajax/ajax_listsongs.php b/ajax/ajax_listsongs.php index 4203547..5a8ee55 100644 --- a/ajax/ajax_listsongs.php +++ b/ajax/ajax_listsongs.php @@ -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); diff --git a/js/minimal.js b/js/minimal.js index 5f7d2d1..c8b13e0 100755 --- a/js/minimal.js +++ b/js/minimal.js @@ -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);