track will always try to be downloaded

This commit is contained in:
raphael60650 2021-06-17 16:25:42 +02:00
parent df6e0e8808
commit 524104b400

View file

@ -51,7 +51,6 @@ def patch_track(self, tracks, total_track="?"):
if os.path.getsize(track_file) < 1000: # File under this size are corrupted if os.path.getsize(track_file) < 1000: # File under this size are corrupted
os.remove(track_file) os.remove(track_file)
if not (os.path.exists(track_wu8_file)):
dl_code = self.get_github_file(track_wu8_file) dl_code = self.get_github_file(track_wu8_file)
if dl_code == -1: if dl_code == -1:
error_count += 1 error_count += 1
@ -82,7 +81,6 @@ def patch_track(self, tracks, total_track="?"):
stderr = process_list[process].stderr.read() stderr = process_list[process].stderr.read()
if b"wszst: ERROR" in stderr: # Error occured if b"wszst: ERROR" in stderr: # Error occured
process_list.pop(process) process_list.pop(process)
print(process, stderr)
os.remove(process) os.remove(process)
error_count += 1 error_count += 1
if error_count > error_max: # Too much track wasn't correctly converted if error_count > error_max: # Too much track wasn't correctly converted