Merge pull request #757 from cvium/fix_aspect_ratio_for_real

Fix default aspect ratio
This commit is contained in:
Vasily 2019-01-29 16:10:51 +03:00 committed by GitHub
commit 6822975fd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -63,7 +63,8 @@ namespace MediaBrowser.Controller.Drawing
case ImageType.Logo:
return 2.58;
case ImageType.Primary:
return item.GetDefaultPrimaryImageAspectRatio();
double defaultPrimaryImageAspectRatio = item.GetDefaultPrimaryImageAspectRatio();
return defaultPrimaryImageAspectRatio > 0 ? defaultPrimaryImageAspectRatio : 2.0 / 3;
default:
return 1;
}

View File

@ -1518,7 +1518,7 @@ namespace MediaBrowser.Controller.Entities
public virtual double GetDefaultPrimaryImageAspectRatio()
{
return 2.0 / 3;
return 0;
}
public virtual string CreatePresentationUniqueKey()