More small optimizations

This commit is contained in:
Vasily
2020-05-19 14:56:52 +03:00
parent a226a4ee03
commit 186b7f303c
3 changed files with 5 additions and 9 deletions

View File

@@ -1831,10 +1831,11 @@ namespace Emby.Server.Implementations.Library
}
var outdated = item.ImageInfos
.Where(i => (i.Width == 0 || i.Height == 0 || string.IsNullOrEmpty(i.Hash)))
.Where(i => (i.IsLocalFile && (i.Width == 0 || i.Height == 0 || string.IsNullOrEmpty(i.Hash))))
.ToList();
if (outdated.Count == 0)
{
RegisterItem(item);
return;
}