✨ Todo added to implement download speed.

This commit is contained in:
Robert Honz
2024-11-15 09:14:00 +01:00
parent 6f112546a5
commit f28d07b651
+1
View File
@@ -149,6 +149,7 @@ class Download:
) )
# Download segments until progress is finished. # Download segments until progress is finished.
# TODO: Compute download speed (https://github.com/Textualize/rich/blob/master/examples/downloader.py)
while not self.progress.tasks[p_task].finished: while not self.progress.tasks[p_task].finished:
with futures.ThreadPoolExecutor( with futures.ThreadPoolExecutor(
max_workers=self.settings.data.downloads_simultaneous_per_track_max max_workers=self.settings.data.downloads_simultaneous_per_track_max