diff --git a/dashboard-ui/css/librarybrowser.css b/dashboard-ui/css/librarybrowser.css
index 498417109..2b3082e97 100644
--- a/dashboard-ui/css/librarybrowser.css
+++ b/dashboard-ui/css/librarybrowser.css
@@ -628,14 +628,17 @@ a.itemTag:hover {
top: 0;
right: 0;
text-align: center;
- background-color: #008FBB;
padding: 3px 10px;
border-bottom-left-radius: 10px;
color: #fff;
+
+ background: rgb(0, 143, 187);
+ background: rgba(0, 143, 187, .8);
}
.offlinePosterRibbon {
- background-color: #cc3333;
+ background: rgb(255, 106, 0);
+ background: rgba(255, 106, 0, .85);
}
.itemProgress {
diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js
index 46a63df55..911489dad 100644
--- a/dashboard-ui/scripts/librarybrowser.js
+++ b/dashboard-ui/scripts/librarybrowser.js
@@ -814,7 +814,13 @@
},
getNewIndicatorHtml: function (item) {
- if (item.Type == "Series" || item.Type == "Season") {
+ if (item.Type == "Season") {
+ if (item.RecursiveUnplayedItemCount) {
+ return '
' + item.RecursiveUnplayedItemCount + ' New
';
+ }
+ }
+
+ if (item.Type == "Series") {
if (item.RecursiveUnplayedItemCount && item.PlayedPercentage) {
return '' + item.RecursiveUnplayedItemCount + ' New
';
}
@@ -863,10 +869,29 @@
var half = Math.floor(values.length / 2);
+ var result;
+
if (values.length % 2)
- return values[half];
+ result = values[half];
else
- return (values[half - 1] + values[half]) / 2.0;
+ result = (values[half - 1] + values[half]) / 2.0;
+
+ // If really close to 2:3 (poster image), just return 2:3
+ if (Math.abs(0.66666666667 - result) <= .05) {
+ return 0.66666666667;
+ }
+
+ // If really close to 16:9 (episode image), just return 16:9
+ if (Math.abs(1.777777778 - result) <= .05) {
+ return 1.777777778;
+ }
+
+ // If really close to 1 (square image), just return 1
+ if (Math.abs(1 - result) <= .05) {
+ return 1;
+ }
+
+ return result;
},
metroColors: ["#6FBD45", "#4BB3DD", "#4164A5", "#E12026", "#800080", "#E1B222", "#008040", "#0094FF", "#FF00C7", "#FF870F", "#7F0037"],