skip converted files

This commit is contained in:
Cyberes 2023-11-11 11:25:31 -07:00
parent 91032c19c9
commit 0fb26ccf1d
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,8 @@ def download_tile(task):
if not is_png(output_path): if not is_png(output_path):
tqdm.write(f'PNG conversion for {output_path} failed. Deleting and retrying...') tqdm.write(f'PNG conversion for {output_path} failed. Deleting and retrying...')
corrupted_image = True corrupted_image = True
else:
return row, col, 'exist'
elif not valid_png_file: elif not valid_png_file:
# We will re-download the image. Don't need to delete it, just overwrite it. # We will re-download the image. Don't need to delete it, just overwrite it.
# del_path(output_path) # del_path(output_path)