mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
fix image analysis
This commit is contained in:
parent
b54046a6de
commit
a59ff27605
@ -461,7 +461,7 @@ namespace Emby.Drawing
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
var path = item.Path;
|
var path = info.Path;
|
||||||
_logger.Info("Getting image size for item {0} {1}", item.GetType().Name, path);
|
_logger.Info("Getting image size for item {0} {1}", item.GetType().Name, path);
|
||||||
|
|
||||||
var size = GetImageSize(path, allowSlowMethods);
|
var size = GetImageSize(path, allowSlowMethods);
|
||||||
|
@ -1655,9 +1655,9 @@ namespace Emby.Server.Implementations.Dto
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
//_logger.ErrorException("Failed to determine primary image aspect ratio for {0}", ex, path);
|
//_logger.ErrorException("Failed to determine primary image aspect ratio for {0}", ex, imageInfo.Path);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -30,8 +30,11 @@ namespace Emby.Server.Implementations.Library.Resolvers
|
|||||||
// Must be an image file within a photo collection
|
// Must be an image file within a photo collection
|
||||||
if (args.IsDirectory)
|
if (args.IsDirectory)
|
||||||
{
|
{
|
||||||
if (string.Equals(args.GetCollectionType(), CollectionType.HomeVideos, StringComparison.OrdinalIgnoreCase) ||
|
// Must be an image file within a photo collection
|
||||||
string.Equals(args.GetCollectionType(), CollectionType.Photos, StringComparison.OrdinalIgnoreCase))
|
var collectionType = args.GetCollectionType();
|
||||||
|
|
||||||
|
if (string.Equals(collectionType, CollectionType.Photos, StringComparison.OrdinalIgnoreCase) ||
|
||||||
|
(string.Equals(collectionType, CollectionType.HomeVideos, StringComparison.OrdinalIgnoreCase) && args.GetLibraryOptions().EnablePhotos))
|
||||||
{
|
{
|
||||||
if (HasPhotos(args))
|
if (HasPhotos(args))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user