diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-03-19 20:51:30 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-03-19 20:51:30 +0600 |
commit | 617e58d85063b68fb9736355e8354b05e82b1147 (patch) | |
tree | 2ff064c5003f51ca26c24dc2e0dcebcbf0cdd516 /youtube_dl/downloader/fragment.py | |
parent | e33baba0dd6584475f75badec2186a7d86b88a5d (diff) |
[downloader/{common,fragment}] Fix total retries reporting on python 2.6
Diffstat (limited to 'youtube_dl/downloader/fragment.py')
-rw-r--r-- | youtube_dl/downloader/fragment.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/downloader/fragment.py b/youtube_dl/downloader/fragment.py index df66c35f0..c2671e6d2 100644 --- a/youtube_dl/downloader/fragment.py +++ b/youtube_dl/downloader/fragment.py @@ -23,8 +23,8 @@ class FragmentFD(FileDownloader): def report_retry_fragment(self, fragment_name, count, retries): self.to_screen( - '[download] Got server HTTP error. Retrying fragment %s (attempt %d of %.0f)...' - % (fragment_name, count, retries)) + '[download] Got server HTTP error. Retrying fragment %s (attempt %d of %s)...' + % (fragment_name, count, self.format_retries(retries))) def _prepare_and_start_frag_download(self, ctx): self._prepare_frag_download(ctx) |