mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 06:10:12 +01:00
Detect mobile number checkpoint
This commit is contained in:
parent
1bd55358a0
commit
6a04a4aaec
|
@ -439,6 +439,8 @@ def _extract_from_url(self, url, video_id):
|
||||||
if (self.get_param('username') and self.get_param('password')) or self.get_param('cookiefile'):
|
if (self.get_param('username') and self.get_param('password')) or self.get_param('cookiefile'):
|
||||||
if 'We\'ve suspended your account' in webpage:
|
if 'We\'ve suspended your account' in webpage:
|
||||||
raise ExtractorError('Login account is suspended.', expected=True)
|
raise ExtractorError('Login account is suspended.', expected=True)
|
||||||
|
if 'send a code to confirm the mobile number you give us' in webpage:
|
||||||
|
raise ExtractorError('Mobile number checkpoint for logged in user.', expected=True)
|
||||||
|
|
||||||
userinfo = get_first(sjs_data, (
|
userinfo = get_first(sjs_data, (
|
||||||
'require', ..., ..., ..., '__bbox', 'define',
|
'require', ..., ..., ..., '__bbox', 'define',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user