diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-10-18 23:28:57 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-10-18 23:52:44 +0530 |
commit | d5d1df8afdd532cc889f9d95be0740668a0776fe (patch) | |
tree | 86f30088a9c90d60ddd581618165b3446fa39f2e /yt_dlp/downloader/common.py | |
parent | cd5df121f3577178cb73bafe886677da9452dc42 (diff) | |
download | hypervideo-pre-d5d1df8afdd532cc889f9d95be0740668a0776fe.tar.lz hypervideo-pre-d5d1df8afdd532cc889f9d95be0740668a0776fe.tar.xz hypervideo-pre-d5d1df8afdd532cc889f9d95be0740668a0776fe.zip |
[cleanup Misc
Closes #5162
Diffstat (limited to 'yt_dlp/downloader/common.py')
-rw-r--r-- | yt_dlp/downloader/common.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/yt_dlp/downloader/common.py b/yt_dlp/downloader/common.py index 221b3827c..8d110c374 100644 --- a/yt_dlp/downloader/common.py +++ b/yt_dlp/downloader/common.py @@ -333,7 +333,7 @@ class FileDownloader: return tmpl return default - _formats_bytes = lambda k: f'{format_bytes(s.get(k)):>10s}' + _format_bytes = lambda k: f'{format_bytes(s.get(k)):>10s}' if s['status'] == 'finished': if self.params.get('noprogress'): @@ -342,7 +342,7 @@ class FileDownloader: s.update({ 'speed': speed, '_speed_str': self.format_speed(speed).strip(), - '_total_bytes_str': _formats_bytes('total_bytes'), + '_total_bytes_str': _format_bytes('total_bytes'), '_elapsed_str': self.format_seconds(s.get('elapsed')), '_percent_str': self.format_percent(100), }) @@ -363,9 +363,9 @@ class FileDownloader: lambda: 100 * s['downloaded_bytes'] / s['total_bytes'], lambda: 100 * s['downloaded_bytes'] / s['total_bytes_estimate'], lambda: s['downloaded_bytes'] == 0 and 0)), - '_total_bytes_str': _formats_bytes('total_bytes'), - '_total_bytes_estimate_str': _formats_bytes('total_bytes_estimate'), - '_downloaded_bytes_str': _formats_bytes('downloaded_bytes'), + '_total_bytes_str': _format_bytes('total_bytes'), + '_total_bytes_estimate_str': _format_bytes('total_bytes_estimate'), + '_downloaded_bytes_str': _format_bytes('downloaded_bytes'), '_elapsed_str': self.format_seconds(s.get('elapsed')), }) |