Detect mobile number checkpoint

This commit is contained in:
ringus1 2024-01-15 10:43:10 +01:00
parent 1bd55358a0
commit 6a04a4aaec

View File

@ -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',