[downloader/{common,fragment}] Fix total retries reporting on python 2.6

This commit is contained in:
Sergey M․ 2016-03-19 20:51:30 +06:00
parent e33baba0dd
commit 617e58d850
2 changed files with 9 additions and 3 deletions

View file

@ -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)