diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js
index f05bcd64a5..0333057367 100644
--- a/dashboard-ui/scripts/librarybrowser.js
+++ b/dashboard-ui/scripts/librarybrowser.js
@@ -52,7 +52,7 @@
html += "";
}
- else if (item.MediaType == "Video") {
+ else if (item.MediaType == "Video" || item.Type == "Season" || item.Type == "Series") {
html += "";
}
diff --git a/dashboard-ui/scripts/tvshows.js b/dashboard-ui/scripts/tvshows.js
index 0e637014ab..26d716f47c 100644
--- a/dashboard-ui/scripts/tvshows.js
+++ b/dashboard-ui/scripts/tvshows.js
@@ -1,159 +1,184 @@
(function ($, document) {
- // The base query options
- var query = {
+ // The base query options
+ var query = {
- SortBy: "SortName",
- SortOrder: "Ascending",
- IncludeItemTypes: "Series",
- Recursive: true,
- Fields: "PrimaryImageAspectRatio,SeriesInfo"
- };
+ SortBy: "SortName",
+ SortOrder: "Ascending",
+ IncludeItemTypes: "Series",
+ Recursive: true,
+ Fields: "PrimaryImageAspectRatio,SeriesInfo"
+ };
- function getTableHtml(items) {
+ function getTableHtml(items) {
- var html = '
';
+ var html = '
';
- html += '';
+ html += '';
- html += '
';
- html += '
';
- html += '
Name
';
- html += '
Year
';
- html += '
Official Rating
';
- html += '
Runtime
';
- html += '
Community Rating
';
- html += '
';
+ html += '
';
+ html += '
';
+ html += '
Name
';
+ html += '
Year
';
+ html += '
Official Rating
';
+ html += '
Runtime
';
+ html += '
Community Rating
';
+ html += '
';
- html += '';
+ html += '';
- html += '';
+ html += '';
- for (var i = 0, length = items.length; i < length; i++) {
+ for (var i = 0, length = items.length; i < length; i++) {
- html += getRowHtml(items[i]);
- }
+ html += getRowHtml(items[i]);
+ }
- html += '';
+ html += '';
- html += '
';
+ html += '
';
- return html;
- }
+ return html;
+ }
- function getRowHtml(item) {
+ function getRowHtml(item) {
- var html = '