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