améliorations
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user