mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-29 03:55:53 +00:00
[ie] Use != instead of not ==
Authored by: bashonly
This commit is contained in:
parent
f6cbfcc294
commit
1b68ebd381
@ -697,7 +697,7 @@ class SoundcloudIE(SoundcloudBaseIE):
|
|||||||
try:
|
try:
|
||||||
return self._extract_info_dict(info, full_title, token)
|
return self._extract_info_dict(info, full_title, token)
|
||||||
except ExtractorError as e:
|
except ExtractorError as e:
|
||||||
if not isinstance(e.cause, HTTPError) or not e.cause.status == 429:
|
if not isinstance(e.cause, HTTPError) or e.cause.status != 429:
|
||||||
raise
|
raise
|
||||||
self.report_warning(
|
self.report_warning(
|
||||||
'You have reached the API rate limit, which is ~600 requests per '
|
'You have reached the API rate limit, which is ~600 requests per '
|
||||||
|
|||||||
@ -1342,7 +1342,7 @@ class TwitterIE(TwitterBaseIE):
|
|||||||
'tweet_mode': 'extended',
|
'tweet_mode': 'extended',
|
||||||
})
|
})
|
||||||
except ExtractorError as e:
|
except ExtractorError as e:
|
||||||
if not isinstance(e.cause, HTTPError) or not e.cause.status == 429:
|
if not isinstance(e.cause, HTTPError) or e.cause.status != 429:
|
||||||
raise
|
raise
|
||||||
self.report_warning('Rate-limit exceeded; falling back to syndication endpoint')
|
self.report_warning('Rate-limit exceeded; falling back to syndication endpoint')
|
||||||
status = self._call_syndication_api(twid)
|
status = self._call_syndication_api(twid)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user