From cd3eb0a1061b6e0facb9ea6190f91e4a440c4717 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 26 Nov 2013 11:22:11 -0500 Subject: [PATCH] updated nuget for live tv --- dashboard-ui/scripts/librarybrowser.js | 4 ++-- dashboard-ui/scripts/search.js | 17 ++++++++++++++++- 2 files changed, 18 insertions(+), 3 deletions(-) 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;