From 0fb26ccf1d9984ccd4d54513b9c210d32422ae22 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Sat, 11 Nov 2023 11:25:31 -0700 Subject: [PATCH] skip converted files --- pkg/thread.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/thread.py b/pkg/thread.py index fae34b9..e46f19f 100644 --- a/pkg/thread.py +++ b/pkg/thread.py @@ -28,6 +28,8 @@ def download_tile(task): if not is_png(output_path): tqdm.write(f'PNG conversion for {output_path} failed. Deleting and retrying...') corrupted_image = True + else: + return row, col, 'exist' elif not valid_png_file: # We will re-download the image. Don't need to delete it, just overwrite it. # del_path(output_path)