diff options
author | montellese <montellese@xbmc.org> | 2012-09-29 15:35:41 +0200 |
---|---|---|
committer | montellese <montellese@xbmc.org> | 2012-09-29 15:35:41 +0200 |
commit | d8d237c03aed831fc1cfb49eac8dd058a6a1b141 (patch) | |
tree | 1a0043e52964a8b4b43ef07ef20d156296e5e7e7 /addons/webinterface.default/js | |
parent | 8a2d157c2487e1021966ca156b1af4f12fc408e2 (diff) |
[webinterface.default] fix song view of a specific album
Diffstat (limited to 'addons/webinterface.default/js')
-rwxr-xr-x | addons/webinterface.default/js/MediaLibrary.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/webinterface.default/js/MediaLibrary.js b/addons/webinterface.default/js/MediaLibrary.js index 901053c444..e76120c155 100755 --- a/addons/webinterface.default/js/MediaLibrary.js +++ b/addons/webinterface.default/js/MediaLibrary.js @@ -539,7 +539,7 @@ MediaLibrary.prototype = { type: 'POST', contentType: 'application/json', url: JSON_RPC + '?GetSongs', - data: '{"jsonrpc": "2.0", "method": "AudioLibrary.GetSongs", "params": { "properties": ["title", "artist", "genre", "track", "duration", "year", "rating", "playcount"], "albumid" : ' + event.data.album.albumid + ' }, "id": 1}', + data: '{"jsonrpc": "2.0", "method": "AudioLibrary.GetSongs", "params": { "properties": ["title", "artist", "genre", "track", "duration", "year", "rating", "playcount"], "filter": { "albumid" : ' + event.data.album.albumid + ' } }, "id": 1}', success: jQuery.proxy(function(data) { albumDetailsContainer = $('<div>'); albumDetailsContainer.attr('id', 'albumDetails' + event.data.album.albumid) @@ -550,7 +550,7 @@ MediaLibrary.prototype = { $('#content').append(albumDetailsContainer); var albumThumbnail = event.data.album.thumbnail; var albumTitle = event.data.album.title||'Unknown Album'; - var albumArtist = event.data.album.artist||'Unknown Artist'; + var albumArtist = event.data.album.artist.join(', ') || 'Unknown Artist'; var trackCount = data.result.limits.total; $.each($(data.result.songs), jQuery.proxy(function(i, item) { if (i == 0) { @@ -576,11 +576,11 @@ MediaLibrary.prototype = { trackRow.append(trackDurationTD); var trackArtistTD = $('<td>') - .html(item.artist); + .html(item.artist.join(', ')); trackRow.append(trackArtistTD); var trackGenreTD = $('<td>') - .html(item.genre); + .html(item.genre.join(', ')); trackRow.append(trackGenreTD); $('#albumDetails' + event.data.album.albumid + ' .resultSet').append(trackRow); |