diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index c98334839f..21992fb83e 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -1219,22 +1219,22 @@ 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) { + if (Math.abs(0.66666666667 - result) <= .15) { return 0.66666666667; } // If really close to 16:9 (episode image), just return 16:9 - if (Math.abs(1.777777778 - result) <= .05) { + if (Math.abs(1.777777778 - result) <= .15) { return 1.777777778; } // If really close to 1 (square image), just return 1 - if (Math.abs(1 - result) <= .05) { + if (Math.abs(1 - result) <= .15) { return 1; } // If really close to 4:3 (poster image), just return 2:3 - if (Math.abs(1.33333333333 - result) <= .05) { + if (Math.abs(1.33333333333 - result) <= .15) { return 1.33333333333; } diff --git a/dashboard-ui/scripts/mediaplayer.js b/dashboard-ui/scripts/mediaplayer.js index 1d01336179..b469d7b527 100644 --- a/dashboard-ui/scripts/mediaplayer.js +++ b/dashboard-ui/scripts/mediaplayer.js @@ -621,6 +621,8 @@ // Some 1080- videos are reported as 1912? if (maxAllowedWidth >= 1910) { + options.push({ name: '1080p - 20Mbps', maxWidth: 1920, bitrate: 20000000 }); + options.push({ name: '1080p - 15Mbps', maxWidth: 1920, bitrate: 15000000 }); options.push({ name: '1080p - 10Mbps', maxWidth: 1920, bitrate: 10000000 }); options.push({ name: '1080p - 8Mbps', maxWidth: 1920, bitrate: 8000000 }); options.push({ name: '1080p - 6Mbps', maxWidth: 1920, bitrate: 6000000 }); @@ -916,6 +918,8 @@ if (result.Items.length) { channelsButton.show(); + } else { + channelsButton.hide(); } });