Add Download

master CI_BUILD_35
ColdWindScholar 2023-10-05 21:53:48 +08:00
parent 3f25f568b1
commit 42b325c013
1 changed files with 1 additions and 2 deletions

View File

@ -32,7 +32,6 @@ progress = Progress(
TimeRemainingColumn(),
)
done_event = Event()
@ -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)