From dce4a4cd3b98788bbafec52480a6c5ff46e20891 Mon Sep 17 00:00:00 2001 From: w-e-w <40751091+w-e-w@users.noreply.github.com> Date: Sat, 8 Feb 2025 02:41:39 +0900 Subject: [PATCH] use not equal when comparing mtime --- modules/hashes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hashes.py b/modules/hashes.py index d22e5fadc..83ece4012 100644 --- a/modules/hashes.py +++ b/modules/hashes.py @@ -32,7 +32,7 @@ def sha256_from_cache(filename, title, use_addnet_hash=False): cached_sha256 = hashes[title].get("sha256", None) cached_mtime = hashes[title].get("mtime", 0) - if ondisk_mtime > cached_mtime or cached_sha256 is None: + if ondisk_mtime != cached_mtime or cached_sha256 is None: return None return cached_sha256