1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-04 00:55:15 +00:00

[fragment] Fix progress display in fragmented downloads

Closes #1517
This commit is contained in:
pukkandan
2021-11-03 16:28:45 +05:30
parent d89257f398
commit bd93fd5d45
2 changed files with 13 additions and 3 deletions

View File

@ -319,6 +319,8 @@ class FileDownloader(object):
msg_template = '%(_downloaded_bytes_str)s at %(_speed_str)s'
else:
msg_template = '%(_percent_str)s % at %(_speed_str)s ETA %(_eta_str)s'
if s.get('fragment_index'):
msg_template += ' (frag %(fragment_index)s)'
s['_default_template'] = msg_template % s
self._report_progress_status(s)