This repository was archived by the owner on Jul 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Add a progress bar for the downloads #9
Labels
Comments
I would like to give it a try. Can you assign this issue to me? |
Yeah, sure ! |
Code Details I have used tqdm for adding progress bar
Added a pbar global variable
And, updating the pbar here:
I'm encountering an issue where multiple progress bars are being displayed. |
Hey, i think the You would need to use the asyncio module of tqdm, from tqdm.asyncio import tqdm loop = asyncio.get_running_loop()
# Run download in thread pool to avoid blocking IO
tasks = []
for result in results:
if result:
tasks.append(loop.run_in_executor(
None, download_video_audio, result["title"], result["id"], destination
))
for f in tqdm.as_completed(tasks):
await f |
Fixed by #26 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Problem to solve
Currently, there is no indication of the progression of a download
Proposal
Add a progress bar to see the progression
The text was updated successfully, but these errors were encountered: