Skip to content

Commit

Permalink
Add Download
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdWindScholar committed Oct 5, 2023
1 parent 3f25f56 commit 42b325c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
TimeRemainingColumn(),
)


done_event = Event()


Expand Down Expand Up @@ -68,4 +67,4 @@ def download(urls: Iterable[str], dest_dir: str):
filename = url.split("/")[-1]
dest_path = os.path.join(dest_dir, filename)
task_id = progress.add_task("download", filename=filename, start=False)
pool.submit(copy_url, task_id, url, dest_path)
pool.submit(copy_url, task_id, url, dest_path)

0 comments on commit 42b325c

Please sign in to comment.