Merge pull request #16231 from theguymadmax/skip-image-for-empty-folders

Skip image checks for empty folders
This commit is contained in:
Bond-009
2026-02-14 11:43:24 +01:00
committed by GitHub

View File

@@ -267,22 +267,24 @@ namespace Emby.Server.Implementations.Images
{ {
var image = item.GetImageInfo(type, 0); var image = item.GetImageInfo(type, 0);
if (image is not null) if (image is null)
{ {
if (!image.IsLocalFile) return GetItemsWithImages(item).Count is not 0;
{ }
return false;
}
if (!FileSystem.ContainsSubPath(item.GetInternalMetadataPath(), image.Path)) if (!image.IsLocalFile)
{ {
return false; return false;
} }
if (!HasChangedByDate(item, image)) if (!FileSystem.ContainsSubPath(item.GetInternalMetadataPath(), image.Path))
{ {
return false; return false;
} }
if (!HasChangedByDate(item, image))
{
return false;
} }
return true; return true;