mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Remove image hash caching since it does not work for blurhash
This commit is contained in:
parent
e9b29dd814
commit
8b256e4c60
@ -57,17 +57,7 @@ public class ThumbnailsManager(
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (image.Id == Guid.Empty)
|
if (image.Id == Guid.Empty)
|
||||||
{
|
image.Id = Guid.NewGuid();
|
||||||
using MD5 md5 = MD5.Create();
|
|
||||||
image.Id = new Guid(md5.ComputeHash(Encoding.UTF8.GetBytes(image.Source)));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (
|
|
||||||
File.Exists(GetImagePath(image.Id, ImageQuality.High))
|
|
||||||
&& File.Exists(GetImagePath(image.Id, ImageQuality.Medium))
|
|
||||||
&& File.Exists(GetImagePath(image.Id, ImageQuality.Low))
|
|
||||||
)
|
|
||||||
return;
|
|
||||||
|
|
||||||
logger.LogInformation("Downloading image {What}", what);
|
logger.LogInformation("Downloading image {What}", what);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user