From 0084de42739688085d3f9ea7674e81069d12d0dc Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 5 Mar 2023 12:11:50 +0200 Subject: [PATCH] add print statement to duplicate detection --- files/helpers/media.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/helpers/media.py b/files/helpers/media.py index bba50994f..b65e22f94 100644 --- a/files/helpers/media.py +++ b/files/helpers/media.py @@ -205,8 +205,10 @@ def process_image(filename:str, v, resize=0, trim=False, uploader_id:Optional[in i_hash = str(imagehash.phash(i)) if i_hash in hashes.keys(): + print(f'\n\n★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★\n\nRemove one of these existing duplicates please:\n\n', flush=True) print(hashes[i_hash], flush=True) print(img_path, flush=True) + print(f'\n\n★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★\n\n', flush=True) else: hashes[i_hash] = img_path with Image.open(filename) as i: