|
|
@ -3857,8 +3857,10 @@ class InfoExtractor:
|
|
|
|
return True
|
|
|
|
return True
|
|
|
|
|
|
|
|
|
|
|
|
def _error_or_warning(self, err, _count=None, _retries=0, *, fatal=True):
|
|
|
|
def _error_or_warning(self, err, _count=None, _retries=0, *, fatal=True):
|
|
|
|
RetryManager.report_retry(err, _count or int(fatal), _retries, info=self.to_screen, warn=self.report_warning,
|
|
|
|
RetryManager.report_retry(
|
|
|
|
sleep_func=self.get_param('retry_sleep_functions', {}).get('extractor'))
|
|
|
|
err, _count or int(fatal), _retries,
|
|
|
|
|
|
|
|
info=self.to_screen, warn=self.report_warning, error=None if fatal else self.report_warning,
|
|
|
|
|
|
|
|
sleep_func=self.get_param('retry_sleep_functions', {}).get('extractor'))
|
|
|
|
|
|
|
|
|
|
|
|
def RetryManager(self, **kwargs):
|
|
|
|
def RetryManager(self, **kwargs):
|
|
|
|
return RetryManager(self.get_param('extractor_retries', 3), self._error_or_warning, **kwargs)
|
|
|
|
return RetryManager(self.get_param('extractor_retries', 3), self._error_or_warning, **kwargs)
|
|
|
|