From e9f37aa6a8e436246da9b47abcfcb354eb106358 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Fri, 24 Sep 2021 20:42:39 +1000 Subject: [PATCH] minor change to optim, if file hash is same but we have no thumb, then try to gen one anyway --- pa_job_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pa_job_manager.py b/pa_job_manager.py index 88bc064..97e4b7e 100644 --- a/pa_job_manager.py +++ b/pa_job_manager.py @@ -1314,7 +1314,8 @@ def GenHashAndThumb(job, e): return new_hash = md5( job, e.FullPathOnFS() ) - if new_hash == e.file_details.hash: + # same hash and we already have a thumbnail-> just return + if new_hash == e.file_details.hash and e.file_details.thumbnail: if DEBUG: print(f"OPTIM: GenHashAndThumb {e.name} md5 is same - likely a mv on filesystem so skip md5/thumb") job.current_file_num+=1