trim tv objects
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user