Closed deldesir closed 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?
@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.
Thanks! looks good now with cf1a5f6
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.