mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-20 09:52:50 +01:00
Flake fix
This commit is contained in:
parent
eb0cfc7420
commit
88ac2d3915
@ -493,8 +493,8 @@ def _extract_from_url(self, url, video_id):
|
||||
|
||||
if login_data:
|
||||
logged_in = get_first(sjs_data, (
|
||||
'require', ..., ..., ..., '__bbox', 'define',
|
||||
lambda _, v: 'CurrentUserInitialData' in v, ..., 'ACCOUNT_ID'), default='0') != '0'
|
||||
'require', ..., ..., ..., '__bbox', 'define',
|
||||
lambda _, v: 'CurrentUserInitialData' in v, ..., 'ACCOUNT_ID'), default='0') != '0'
|
||||
if logged_in:
|
||||
if any(content in webpage for content in ['180 days left to appeal', 'suspended your account']):
|
||||
raise ExtractorError('Your account is suspended', expected=True)
|
||||
|
Loading…
Reference in New Issue
Block a user