update image size
This commit is contained in:
parent
175d8dae5e
commit
3bca39bb68
|
@ -421,10 +421,12 @@ namespace Emby.Drawing
|
||||||
{
|
{
|
||||||
size = GetImageSizeInternal(path, allowSlowMethod);
|
size = GetImageSizeInternal(path, allowSlowMethod);
|
||||||
|
|
||||||
|
if (size.Width > 0 && size.Height > 0)
|
||||||
|
{
|
||||||
StartSaveImageSizeTimer();
|
StartSaveImageSizeTimer();
|
||||||
|
|
||||||
_cachedImagedSizes.AddOrUpdate(cacheHash, size, (keyName, oldValue) => size);
|
_cachedImagedSizes.AddOrUpdate(cacheHash, size, (keyName, oldValue) => size);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user