aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/downloader/common.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-11-03 16:28:45 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-11-03 16:45:58 +0530
commitbd93fd5d45e104561bad919d4775feba869d0145 (patch)
treed0523e7953e4fe15ae5d7cea77befa9346099243 /yt_dlp/downloader/common.py
parentd89257f398fed8a44fae7d12d849114f9f4ca2be (diff)
downloadhypervideo-pre-bd93fd5d45e104561bad919d4775feba869d0145.tar.lz
hypervideo-pre-bd93fd5d45e104561bad919d4775feba869d0145.tar.xz
hypervideo-pre-bd93fd5d45e104561bad919d4775feba869d0145.zip
[fragment] Fix progress display in fragmented downloads
Closes #1517
Diffstat (limited to 'yt_dlp/downloader/common.py')
-rw-r--r--yt_dlp/downloader/common.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/yt_dlp/downloader/common.py b/yt_dlp/downloader/common.py
index 6cfbb6657..bcf8ac955 100644
--- a/yt_dlp/downloader/common.py
+++ b/yt_dlp/downloader/common.py
@@ -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)