Do not compute dimensions or blurhash for remote images

This commit is contained in:
Vasily 2020-05-28 17:30:11 +03:00
parent a76cee7a95
commit ed791dee46

View File

@ -1850,7 +1850,7 @@ namespace Emby.Server.Implementations.Library
throw new ArgumentNullException(nameof(item)); throw new ArgumentNullException(nameof(item));
} }
var outdated = forceUpdate ? item.ImageInfos : item.ImageInfos.Where(ImageNeedsRefresh).ToArray(); var outdated = forceUpdate ? item.ImageInfos.Where(i => i.IsLocalFile).ToArray() : item.ImageInfos.Where(ImageNeedsRefresh).ToArray();
if (outdated.Length == 0) if (outdated.Length == 0)
{ {
RegisterItem(item); RegisterItem(item);