From 55a3d99e0be7f8a775c6ecdc0a1d25b75f65e3f6 Mon Sep 17 00:00:00 2001 From: raphael60650 Date: Thu, 24 Jun 2021 14:25:34 +0200 Subject: [PATCH] removed debug line, if can't download, skip sha1 check part --- source/patch_track.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/patch_track.py b/source/patch_track.py index b51fd49..63a4e1c 100644 --- a/source/patch_track.py +++ b/source/patch_track.py @@ -61,13 +61,11 @@ def patch_track(self, tracks, total_track="?"): messagebox.showwarning(self.translate("Attention"), self.translate("Impossible de télécharger cette course ! (") + str(error_count) + "/" + str(error_max) + ")") + elif download_returncode == 2: break # Si le téléchargement est désactivé, ne pas checker le sha1 if "sha1" in track: if not self.boolvar_dont_check_track_sha1.get(): - if self.check_track_sha1(get_track_wu8(track_file), track["sha1"]) == 0: # La course est correct - print(f"correct sha1 for track {track_file}") - else: - print(f"incorrect sha1 for track {track_file}") + if not self.check_track_sha1(get_track_wu8(track_file), track["sha1"]) == 0: # La course est correcte error_count += 1 if error_count > error_max: # Too much track wasn't correctly converted messagebox.showerror(