diff --git a/yt_dlp/extractor/atresplayer.py b/yt_dlp/extractor/atresplayer.py index 548998b8d..78f513cc1 100644 --- a/yt_dlp/extractor/atresplayer.py +++ b/yt_dlp/extractor/atresplayer.py @@ -65,6 +65,8 @@ def _login(self): 'password': password, })) except ExtractorError as e: + if isinstance(e.cause, compat_HTTPError) and e.cause.code == 400: + raise ExtractorError('Authentication failure', expected=True) self._handle_error(e, 400) def _real_extract(self, url):