améliorations

This commit is contained in:
sky
2025-09-11 15:27:30 +02:00
parent 6fa530e297
commit ee46094d6d
5 changed files with 120 additions and 71 deletions

View File

@@ -60,12 +60,13 @@ def download_file(
output_file.write(file_response.content)
else:
if (show_progress):
total_length = int(total_length)
progress_bar = tqdm(
total=total_length,
desc="Downloading",
bar_format='{desc}: {elapsed} [{bar:30}] {rate_fmt}',
unit="B",
unit_scale=True,
unit_divisor=1024
unit_divisor=1024,
ncols=80
)
for data in file_response.iter_content(chunk_size=4096):