update image size

This commit is contained in:
Luke Pulverenti 2015-10-26 12:40:35 -04:00
parent 175d8dae5e
commit 3bca39bb68

View File

@ -421,9 +421,11 @@ namespace Emby.Drawing
{ {
size = GetImageSizeInternal(path, allowSlowMethod); size = GetImageSizeInternal(path, allowSlowMethod);
StartSaveImageSizeTimer(); if (size.Width > 0 && size.Height > 0)
{
_cachedImagedSizes.AddOrUpdate(cacheHash, size, (keyName, oldValue) => size); StartSaveImageSizeTimer();
_cachedImagedSizes.AddOrUpdate(cacheHash, size, (keyName, oldValue) => size);
}
} }
return size; return size;