parent
9e49146352
commit
23326151c4
6 changed files with 56 additions and 6 deletions
|
|
@ -25,10 +25,6 @@ class HttpQuietDownloader(HttpFD):
|
|||
|
||||
console_title = to_screen
|
||||
|
||||
def report_retry(self, err, count, retries):
|
||||
super().to_screen(
|
||||
f'[download] Got server HTTP error: {err}. Retrying (attempt {count} of {self.format_retries(retries)}) ...')
|
||||
|
||||
|
||||
class FragmentFD(FileDownloader):
|
||||
"""
|
||||
|
|
@ -70,6 +66,7 @@ class FragmentFD(FileDownloader):
|
|||
self.to_screen(
|
||||
'\r[download] Got server HTTP error: %s. Retrying fragment %d (attempt %d of %s) ...'
|
||||
% (error_to_compat_str(err), frag_index, count, self.format_retries(retries)))
|
||||
self.sleep_retry('fragment', count)
|
||||
|
||||
def report_skip_fragment(self, frag_index, err=None):
|
||||
err = f' {err};' if err else ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue