mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-23 06:00:47 +02:00
Fix photo serialization
This commit is contained in:
parent
c73370ad92
commit
b02a3a29f5
|
@ -41,10 +41,10 @@ namespace MediaBrowser.Controller.Entities
|
||||||
public override double GetDefaultPrimaryImageAspectRatio()
|
public override double GetDefaultPrimaryImageAspectRatio()
|
||||||
{
|
{
|
||||||
// REVIEW: @bond
|
// REVIEW: @bond
|
||||||
if (Width.HasValue && Height.HasValue)
|
if (Width != 0 && Height != 0)
|
||||||
{
|
{
|
||||||
double width = Width.Value;
|
double width = Width;
|
||||||
double height = Height.Value;
|
double height = Height;
|
||||||
|
|
||||||
if (Orientation.HasValue)
|
if (Orientation.HasValue)
|
||||||
{
|
{
|
||||||
|
@ -67,8 +67,6 @@ namespace MediaBrowser.Controller.Entities
|
||||||
return base.GetDefaultPrimaryImageAspectRatio();
|
return base.GetDefaultPrimaryImageAspectRatio();
|
||||||
}
|
}
|
||||||
|
|
||||||
public new int? Width { get; set; }
|
|
||||||
public new int? Height { get; set; }
|
|
||||||
public string CameraMake { get; set; }
|
public string CameraMake { get; set; }
|
||||||
public string CameraModel { get; set; }
|
public string CameraModel { get; set; }
|
||||||
public string Software { get; set; }
|
public string Software { get; set; }
|
||||||
|
|
Loading…
Reference in a new issue