Ensure Koreader hash is generated for existing files.

This commit is contained in:
Joseph Milazzo 2025-06-02 17:23:39 -05:00
parent 54c572a83b
commit 6498aa7fe5
2 changed files with 8 additions and 4 deletions

View file

@ -880,6 +880,8 @@ public class ProcessSeries : IProcessSeries
existingFile.FileName = Parser.Parser.RemoveExtensionIfSupported(existingFile.FilePath);
existingFile.FilePath = Parser.Parser.NormalizePath(existingFile.FilePath);
existingFile.Bytes = fileInfo.Length;
existingFile.KoreaderHash = KoreaderHelper.HashContents(existingFile.FilePath);
// We skip updating DB here with last modified time so that metadata refresh can do it
}
else