mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[extractor] Fix fatal=False
in RetryManager
This commit is contained in:
parent
b27bc13af6
commit
8ca48a1a54
2 changed files with 5 additions and 3 deletions
|
@ -39,7 +39,7 @@ class AmazonStoreIE(InfoExtractor):
|
|||
def _real_extract(self, url):
|
||||
id = self._match_id(url)
|
||||
|
||||
for retry in self.RetryManager(fatal=True):
|
||||
for retry in self.RetryManager():
|
||||
webpage = self._download_webpage(url, id)
|
||||
try:
|
||||
data_json = self._parse_json(self._html_search_regex(r'var\s?obj\s?=\s?jQuery\.parseJSON\(\'(.*)\'\)', webpage, 'data'), id)
|
||||
|
|
|
@ -3857,7 +3857,9 @@ def _yes_playlist(self, playlist_id, video_id, smuggled_data=None, *, playlist_l
|
|||
return 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(
|
||||
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):
|
||||
|
|
Loading…
Reference in a new issue