update image size
This commit is contained in:
parent
175d8dae5e
commit
3bca39bb68
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user