|
|
@ -1396,7 +1396,7 @@ namespace Emby.Server.Implementations.Dto
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception ex)
|
|
|
|
catch (Exception ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1630,8 +1630,20 @@ namespace Emby.Server.Implementations.Dto
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var supportedEnhancers = _imageProcessor.GetSupportedEnhancers(item, ImageType.Primary).ToList();
|
|
|
|
|
|
|
|
|
|
|
|
ImageSize size;
|
|
|
|
ImageSize size;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (supportedEnhancers.Count == 0)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var defaultAspectRatio = item.GetDefaultPrimaryImageAspectRatio();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (defaultAspectRatio.HasValue)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return defaultAspectRatio.Value;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
size = _imageProcessor.GetImageSize(imageInfo);
|
|
|
|
size = _imageProcessor.GetImageSize(imageInfo);
|
|
|
@ -1642,8 +1654,6 @@ namespace Emby.Server.Implementations.Dto
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var supportedEnhancers = _imageProcessor.GetSupportedEnhancers(item, ImageType.Primary).ToList();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var enhancer in supportedEnhancers)
|
|
|
|
foreach (var enhancer in supportedEnhancers)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
try
|
|
|
|
try
|
|
|
|