|
|
|
@ -820,11 +820,7 @@ public class EmbyApiClient : IEmbyApiClient |
|
|
|
int height = videoStream.Height ?? 1; |
|
|
|
int height = videoStream.Height ?? 1; |
|
|
|
|
|
|
|
|
|
|
|
var isAnamorphic = false; |
|
|
|
var isAnamorphic = false; |
|
|
|
if (videoStream.IsAnamorphic.HasValue) |
|
|
|
if (!string.IsNullOrWhiteSpace(videoStream.AspectRatio) && videoStream.AspectRatio.Contains(":")) |
|
|
|
{ |
|
|
|
|
|
|
|
isAnamorphic = videoStream.IsAnamorphic.Value; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else if (!string.IsNullOrWhiteSpace(videoStream.AspectRatio) && videoStream.AspectRatio.Contains(":")) |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
// if width/height != aspect ratio, is anamorphic
|
|
|
|
// if width/height != aspect ratio, is anamorphic
|
|
|
|
double resolutionRatio = width / (double)height; |
|
|
|
double resolutionRatio = width / (double)height; |
|
|
|
@ -836,6 +832,10 @@ public class EmbyApiClient : IEmbyApiClient |
|
|
|
|
|
|
|
|
|
|
|
isAnamorphic = Math.Abs(resolutionRatio - aspectRatio) > 0.01d; |
|
|
|
isAnamorphic = Math.Abs(resolutionRatio - aspectRatio) > 0.01d; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
else if (videoStream.IsAnamorphic.HasValue) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
isAnamorphic = videoStream.IsAnamorphic.Value; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var version = new MediaVersion |
|
|
|
var version = new MediaVersion |
|
|
|
{ |
|
|
|
{ |
|
|
|
|