1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-03 16:45:17 +00:00

Add option --retry-sleep (#3059)

Closes #2852
This commit is contained in:
pukkandan
2022-05-19 20:00:31 +05:30
parent 9e49146352
commit 23326151c4
6 changed files with 56 additions and 6 deletions

View File

@ -142,6 +142,7 @@ class ExternalFD(FragmentFD):
self.to_screen(
'[%s] Got error. Retrying fragments (attempt %d of %s)...'
% (self.get_basename(), count, self.format_retries(fragment_retries)))
self.sleep_retry('fragment', count)
if count > fragment_retries:
if not skip_unavailable_fragments:
self.report_error('Giving up after %s fragment retries' % fragment_retries)