chapmanjacobd / library

80+ CLI tools to build, browse, and blend your media library: an index for your archive.
BSD 3-Clause "New" or "Revised" License
355 stars 9 forks source link

Enhance verbosity with detailed download progress information #28

Closed deldesir closed 8 months ago

deldesir commented 8 months ago

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.

holta commented 8 months ago

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

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

deldesir commented 8 months ago

@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 commented 8 months ago

Thanks! looks good now with cf1a5f6