diff --git a/dashboard-ui/itembynamedetails.html b/dashboard-ui/itembynamedetails.html index 14b963749..0321c03bc 100644 --- a/dashboard-ui/itembynamedetails.html +++ b/dashboard-ui/itembynamedetails.html @@ -79,6 +79,7 @@ Suggested Songs Albums + Album Artists Artists Genres Music Videos @@ -89,6 +90,7 @@ Suggested Songs Albums + Album Artists Artists Genres Music Videos diff --git a/dashboard-ui/itemdetails.html b/dashboard-ui/itemdetails.html index 580fba389..447eff25e 100644 --- a/dashboard-ui/itemdetails.html +++ b/dashboard-ui/itemdetails.html @@ -55,6 +55,7 @@ Suggested Songs Albums + Album Artists Artists Genres Music Videos @@ -65,6 +66,7 @@ Suggested Songs Albums + Album Artists Artists Genres Music Videos @@ -75,6 +77,7 @@ Suggested Songs Albums + Album Artists Artists Genres Music Videos diff --git a/dashboard-ui/musicalbumartists.html b/dashboard-ui/musicalbumartists.html new file mode 100644 index 000000000..677691867 --- /dev/null +++ b/dashboard-ui/musicalbumartists.html @@ -0,0 +1,85 @@ + + +
+
';
}
}
@@ -252,10 +252,10 @@
return;
}
- name = getParameterByName('artist', url);
+ name = getParameterByName('musicartist', url);
if (name) {
- self.currentItemType = "Artist";
+ self.currentItemType = "MusicArtist";
self.currentItemName = name;
return;
}
@@ -294,7 +294,7 @@
return ApiClient.getGameGenre(currentItemName, Dashboard.getCurrentUserId());
}
- if (currentItemType == "Artist") {
+ if (currentItemType == "MusicArtist" && currentItemName) {
return ApiClient.getArtist(currentItemName, Dashboard.getCurrentUserId());
}
@@ -314,7 +314,7 @@
item.Type == "Genre" ||
item.Type == "MusicGenre" ||
item.Type == "GameGenre" ||
- item.Type == "Artist") {
+ item.Type == "MusicArtist") {
query = item.Type + "=" + ApiClient.encodeName(item.Name);
} else {
@@ -387,7 +387,7 @@
setFieldVisibilities(page, item);
fillItemInfo(page, item);
- if (item.Type == "Person" || item.Type == "Studio" || item.Type == "MusicGenre" || item.Type == "Genre" || item.Type == "Artist") {
+ if (item.Type == "Person" || item.Type == "Studio" || item.Type == "MusicGenre" || item.Type == "Genre" || item.Type == "MusicArtist") {
$('#btnEditPeople', page).hide();
} else {
$('#btnEditPeople', page).show();
@@ -523,7 +523,7 @@
$('#fldImdb', page).hide();
}
- if (item.Type == "Audio" || item.Type == "Artist" || item.Type == "MusicArtist" || item.Type == "MusicAlbum") {
+ if (item.Type == "Audio" || item.Type == "MusicArtist" || item.Type == "MusicAlbum") {
$('#fldMusicBrainz', page).show();
} else {
$('#fldMusicBrainz', page).hide();
@@ -995,7 +995,7 @@
var updatePromise;
- if (currentItem.Type == "Artist") {
+ if (currentItem.Type == "MusicArtist") {
updatePromise = ApiClient.updateArtist(item);
}
else if (currentItem.Type == "Genre") {
@@ -1129,7 +1129,7 @@
if (val) {
- if (currentItem.Type == "MusicArtist" || currentItem.Type == "Artist") {
+ if (currentItem.Type == "MusicArtist") {
$('#btnOpenMusicbrainz', page).attr('href', 'http://musicbrainz.org/artist/' + val);
} else {
$('#btnOpenMusicbrainz', page).attr('href', 'http://musicbrainz.org/release/' + val);
@@ -1213,7 +1213,7 @@
var force = true;
- if (currentItem.Type == "Artist") {
+ if (currentItem.Type == "MusicArtist") {
refreshPromise = ApiClient.refreshArtist(currentItem.Name, force);
}
else if (currentItem.Type == "Genre") {
diff --git a/dashboard-ui/scripts/itembynamedetailpage.js b/dashboard-ui/scripts/itembynamedetailpage.js
index 29f2748c8..d4a634719 100644
--- a/dashboard-ui/scripts/itembynamedetailpage.js
+++ b/dashboard-ui/scripts/itembynamedetailpage.js
@@ -37,7 +37,7 @@
return ApiClient.getGameGenre(name, Dashboard.getCurrentUserId());
}
- name = getParameterByName('artist');
+ name = getParameterByName('musicartist');
if (name) {
return ApiClient.getArtist(name, Dashboard.getCurrentUserId());
@@ -134,7 +134,7 @@
if (context == "music" && item.Type == "MusicGenre") {
$('#musicGenreTabs', page).show();
}
- if (context == "music" && item.Type == "Artist") {
+ if (context == "music" && item.Type == "MusicArtist") {
$('#artistTabs', page).show();
}
if (context == "games" && item.Type == "GameGenre") {
@@ -389,7 +389,7 @@
else if (currentItem.Type == "Studio") {
query.Studios = currentItem.Name;
}
- else if (currentItem.Type == "Artist") {
+ else if (currentItem.Type == "MusicArtist") {
query.Artists = currentItem.Name;
}
}
diff --git a/dashboard-ui/scripts/itemgallery.js b/dashboard-ui/scripts/itemgallery.js
index a0da675ae..03b8d494d 100644
--- a/dashboard-ui/scripts/itemgallery.js
+++ b/dashboard-ui/scripts/itemgallery.js
@@ -24,7 +24,7 @@
return ApiClient.getGenre(name, Dashboard.getCurrentUserId());
}
- name = getParameterByName('artist');
+ name = getParameterByName('musicartist');
if (name) {
return ApiClient.getArtist(name, Dashboard.getCurrentUserId());
diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js
index e6c40abde..e28a2a67b 100644
--- a/dashboard-ui/scripts/librarybrowser.js
+++ b/dashboard-ui/scripts/librarybrowser.js
@@ -153,7 +153,7 @@
imgUrl = "css/images/items/list/person.png";
isDefault = true;
}
- else if (item.Type == "Artist") {
+ else if (item.Type == "MusicArtist") {
imgUrl = "css/images/items/list/audiocollection.png";
isDefault = true;
@@ -229,7 +229,7 @@
//html += '' + childText + '
'; } - else if (item.Type == "Genre" || item.Type == "Studio" || item.Type == "Person" || item.Type == "Artist" || item.Type == "MusicGenre" || item.Type == "GameGenre") { + else if (item.Type == "Genre" || item.Type == "Studio" || item.Type == "Person" || item.Type == "MusicArtist" || item.Type == "MusicGenre" || item.Type == "GameGenre") { html += LibraryBrowser.getItemCountsHtml(options, item); } @@ -426,7 +426,7 @@ if (item.AlbumArtist) { - html += '