mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-10-31 23:02:40 +00:00
[crunchyroll] Better error reporting on login failure (#2938)
Authored by: tejing1
This commit is contained in:
parent
ecca4519b7
commit
97bef011ee
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ def _login(self):
|
||||||
'session_id': session_id
|
'session_id': session_id
|
||||||
}).encode('ascii'))
|
}).encode('ascii'))
|
||||||
if login_response['code'] != 'ok':
|
if login_response['code'] != 'ok':
|
||||||
raise ExtractorError('Login failed. Bad username or password?', expected=True)
|
raise ExtractorError('Login failed. Server message: %s' % login_response['message'], expected=True)
|
||||||
if not self._get_cookies(self._LOGIN_URL).get('etp_rt'):
|
if not self._get_cookies(self._LOGIN_URL).get('etp_rt'):
|
||||||
raise ExtractorError('Login succeeded but did not set etp_rt cookie')
|
raise ExtractorError('Login succeeded but did not set etp_rt cookie')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue