diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index b2bbfb3e7d..ac770ea10f 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -590,7 +590,7 @@ if (item.Type == "Person") { return "itembynamedetails.html?person=" + ApiClient.encodeName(item.Name) + "&context=" + itemByNameContext; } - + if (item.Type == "MusicArtist") { if (itemByNameContext == "music") { return "itembynamedetails.html?musicartist=" + ApiClient.encodeName(item.Name) + "&context=" + (itemByNameContext || "music"); @@ -1704,7 +1704,7 @@ getDetailImageHtml: function (item) { var imageTags = item.ImageTags || {}; - + if (item.PrimaryImageTag) { imageTags.Primary = item.PrimaryImageTag; } diff --git a/dashboard-ui/scripts/search.js b/dashboard-ui/scripts/search.js index 254388b90c..f3a733a72e 100644 --- a/dashboard-ui/scripts/search.js +++ b/dashboard-ui/scripts/search.js @@ -105,7 +105,22 @@ var html = ''; - html += ''; + var context; + + if (hint.Type == "Episode" || hint.Type == "Season" || hint.Type == "Series") { + context = "tv"; + } + else if (hint.Type == "Game" || hint.Type == "GameSystem") { + context = "games"; + } + else if (hint.Type == "MusicArtist" || hint.Type == "MusicAlbum") { + context = "music"; + } + else if (hint.Type == "Movie" || hint.Type == "BoxSet" || hint.Type == "Trailer") { + context = "movie"; + } + + html += ''; var imgUrl;