Fix filtering images without dimensions

This commit is contained in:
Cody Robibero 2021-11-12 07:21:46 -07:00
parent 7b1314aff5
commit 14c072dd32

View File

@ -457,7 +457,7 @@ namespace MediaBrowser.Providers.Manager
CancellationToken cancellationToken)
{
var eligibleImages = images
.Where(i => i.Type == type && i.Width >= minWidth)
.Where(i => i.Type == type && (i.Width == null || i.Width >= minWidth))
.ToList();
if (EnableImageStub(item) && eligibleImages.Count > 0)