Format
This commit is contained in:
parent
d2f5d6669a
commit
d227239651
2 changed files with 7 additions and 2 deletions
|
|
@ -25,7 +25,10 @@ def download_file(url: str, output_path: Path) -> None:
|
|||
f.write(chunk)
|
||||
downloaded += len(chunk)
|
||||
if total:
|
||||
print(f"\rDownloaded {downloaded / 1024 / 1024:.1f} MB / {total / 1024 / 1024:.1f} MB", end="")
|
||||
print(
|
||||
f"\rDownloaded {downloaded / 1024 / 1024:.1f} MB / {total / 1024 / 1024:.1f} MB",
|
||||
end="",
|
||||
)
|
||||
print(f"\nSaved to {output_path}")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue