From 97bef011ee3a26909b58db864c94104fb7b91b66 Mon Sep 17 00:00:00 2001 From: Jeff Huffman Date: Fri, 4 Mar 2022 03:27:35 -0800 Subject: [PATCH] [crunchyroll] Better error reporting on login failure (#2938) Authored by: tejing1 --- yt_dlp/extractor/crunchyroll.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/crunchyroll.py b/yt_dlp/extractor/crunchyroll.py index ffe291098..b6ba5ef56 100644 --- a/yt_dlp/extractor/crunchyroll.py +++ b/yt_dlp/extractor/crunchyroll.py @@ -85,7 +85,7 @@ class CrunchyrollBaseIE(InfoExtractor): 'session_id': session_id }).encode('ascii')) 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'): raise ExtractorError('Login succeeded but did not set etp_rt cookie')