Skip to content
Snippets Groups Projects
Unverified Commit 8fab2330 authored by pukkandan's avatar pukkandan
Browse files

[SponsorBlock] Obey `--retry-sleep extractor`

parent 1338ae3b
No related branches found
Tags 1639276434
No related merge requests found
......@@ -195,9 +195,9 @@ def report_progress(self, s):
def _retry_download(self, err, count, retries):
# 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,
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,)):
self.write_debug(f'{self.PP_NAME} query: {url}')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment