aboutsummaryrefslogtreecommitdiff
path: root/addons/webinterface.default/js
diff options
context:
space:
mode:
authormontellese <montellese@xbmc.org>2012-09-29 15:35:41 +0200
committermontellese <montellese@xbmc.org>2012-09-29 15:35:41 +0200
commitd8d237c03aed831fc1cfb49eac8dd058a6a1b141 (patch)
tree1a0043e52964a8b4b43ef07ef20d156296e5e7e7 /addons/webinterface.default/js
parent8a2d157c2487e1021966ca156b1af4f12fc408e2 (diff)
[webinterface.default] fix song view of a specific album
Diffstat (limited to 'addons/webinterface.default/js')
-rwxr-xr-xaddons/webinterface.default/js/MediaLibrary.js8
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);