mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 02:18:54 -07:00
Merge pull request #757 from cvium/fix_aspect_ratio_for_real
Fix default aspect ratio
This commit is contained in:
commit
6822975fd3
@ -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;
|
||||
}
|
||||
|
@ -1518,7 +1518,7 @@ namespace MediaBrowser.Controller.Entities
|
||||
|
||||
public virtual double GetDefaultPrimaryImageAspectRatio()
|
||||
{
|
||||
return 2.0 / 3;
|
||||
return 0;
|
||||
}
|
||||
|
||||
public virtual string CreatePresentationUniqueKey()
|
||||
|
Loading…
Reference in New Issue
Block a user