Merge pull request #6830 from crobibero/remote-image

Fix filtering images without dimensions
This commit is contained in:
Claus Vium 2021-11-12 16:32:53 +01:00 committed by GitHub
commit 8579c8f9ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)