Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance verbosity with detailed download progress information #28

Merged
merged 3 commits into from
Jan 5, 2024

Conversation

deldesir
Copy link
Contributor

@deldesir deldesir commented Jan 5, 2024

This PR uses yt_dlp's progress_hooks to log information about percentage completed (d['_percent_str']) and download speed (d['_speed_str']). This addition aims to provide more insights into the ongoing download process, assisting users or developers in monitoring and understanding the progress of the operation.

Use yt_dlp's progress_hooks
@holta
Copy link

holta commented Jan 5, 2024

@deldesir is this suggestion presumably related to... ?

Explain a bit more the architectural/design context as to how/why this approach was chosen?

@deldesir
Copy link
Contributor Author

deldesir commented Jan 5, 2024

@holta, this is indeed related to the ongoing effort in PR iiab/calibre-web#86.

The reason behind this change is to enable efficient log polling for lines containing the specific information pattern "downloading xx%...". This is particularly valuable for scenarios where users or monitoring mechanisms need to track the progress of ongoing downloads.

@chapmanjacobd
Copy link
Owner

Thanks! looks good now with cf1a5f6

@chapmanjacobd chapmanjacobd merged commit 574a6ab into chapmanjacobd:main Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants