diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-05-19 20:00:31 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-05-19 20:00:31 +0530 |
commit | 23326151c45b632c3d5948bd018e80abb370e676 (patch) | |
tree | fb91e7386d3be2ce5fbfb83f36c14f5a7f7a429b /yt_dlp/downloader/fragment.py | |
parent | 9e491463521c65ca4d1d44a757e0a115f62834f5 (diff) | |
download | hypervideo-pre-23326151c45b632c3d5948bd018e80abb370e676.tar.lz hypervideo-pre-23326151c45b632c3d5948bd018e80abb370e676.tar.xz hypervideo-pre-23326151c45b632c3d5948bd018e80abb370e676.zip |
Add option --retry-sleep (#3059)
Closes #2852
Diffstat (limited to 'yt_dlp/downloader/fragment.py')
-rw-r--r-- | yt_dlp/downloader/fragment.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/yt_dlp/downloader/fragment.py b/yt_dlp/downloader/fragment.py index 4655f067f..410c8c1a4 100644 --- a/yt_dlp/downloader/fragment.py +++ b/yt_dlp/downloader/fragment.py @@ -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 '' |