mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-26 02:55:17 +00:00
[SponsorBlock] Obey --retry-sleep extractor
This commit is contained in:
parent
1338ae3ba3
commit
8fab23301c
1 changed files with 2 additions and 2 deletions
|
@ -195,9 +195,9 @@ def report_progress(self, s):
|
||||||
|
|
||||||
def _retry_download(self, err, count, retries):
|
def _retry_download(self, err, count, retries):
|
||||||
# While this is not an extractor, it behaves similar to one and
|
# While this is not an extractor, it behaves similar to one and
|
||||||
# so obey extractor_retries and sleep_interval_requests
|
# so obey extractor_retries and "--retry-sleep extractor"
|
||||||
RetryManager.report_retry(err, count, retries, info=self.to_screen, warn=self.report_warning,
|
RetryManager.report_retry(err, count, retries, info=self.to_screen, warn=self.report_warning,
|
||||||
sleep_func=self.get_param('sleep_interval_requests'))
|
sleep_func=self.get_param('retry_sleep_functions', {}).get('extractor'))
|
||||||
|
|
||||||
def _download_json(self, url, *, expected_http_errors=(404,)):
|
def _download_json(self, url, *, expected_http_errors=(404,)):
|
||||||
self.write_debug(f'{self.PP_NAME} query: {url}')
|
self.write_debug(f'{self.PP_NAME} query: {url}')
|
||||||
|
|
Loading…
Reference in a new issue