Merge pull request #757 from cvium/fix_aspect_ratio_for_real

Fix default aspect ratio
pull/769/head
Vasily 6 years ago committed by GitHub
commit 6822975fd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

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

Loading…
Cancel
Save