This commit is contained in:
Andras Schmelczer 2026-01-27 22:41:43 +00:00
parent d2f5d6669a
commit d227239651
2 changed files with 7 additions and 2 deletions

View file

@ -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}")