diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index c8ada67c50..016f14b904 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -107,11 +107,11 @@ } var childText; - + if (item.Type == "BoxSet") { childText = item.ChildCount == 1 ? "1 Movie" : item.ChildCount + " Movies"; - + html += '
' + childText + '
'; } else if (item.Type == "Genre" || item.Type == "Studio" || item.Type == "Person") { @@ -165,13 +165,13 @@ return item.IsFolder ? (item.Id ? "itemList.html?parentId=" + item.Id : "#") : "itemdetails.html?id=" + item.Id; }, - + getPrimaryImageUrl: function (item, options) { options = options || {}; options.type = "Primary"; options.tag = item.ImageTags.Primary; - + if (item.Type == "Studio") { return ApiClient.getStudioImageUrl(item.Name, options); @@ -444,6 +444,10 @@ var html = 'Links: '; var links = []; + if (item.HomePageUrl) { + links.push('Website'); + } + if (item.ProviderIds.Imdb) { if (item.Type == "Movie" || item.Type == "Episode") links.push('IMDb');