From 8b256e4c60955754d801821aba4d8fe201129821 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sun, 21 Apr 2024 13:52:13 +0200 Subject: [PATCH] Remove image hash caching since it does not work for blurhash --- back/src/Kyoo.Core/Controllers/ThumbnailsManager.cs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/back/src/Kyoo.Core/Controllers/ThumbnailsManager.cs b/back/src/Kyoo.Core/Controllers/ThumbnailsManager.cs index d896127c..6a8d28a3 100644 --- a/back/src/Kyoo.Core/Controllers/ThumbnailsManager.cs +++ b/back/src/Kyoo.Core/Controllers/ThumbnailsManager.cs @@ -57,17 +57,7 @@ public class ThumbnailsManager( try { if (image.Id == Guid.Empty) - { - 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; + image.Id = Guid.NewGuid(); logger.LogInformation("Downloading image {What}", what);