diff --git a/youtube_dl/extractor/atresplayer.py b/youtube_dl/extractor/atresplayer.py index 28013eb13..178514767 100644 --- a/youtube_dl/extractor/atresplayer.py +++ b/youtube_dl/extractor/atresplayer.py @@ -71,7 +71,7 @@ class AtresPlayerIE(InfoExtractor): 'password': password, })) except ExtractorError as e: - if isinstance(e.cause, compat_HTTPError) and e.cause.code == 401: + if isinstance(e.cause, compat_HTTPError) and e.cause.code == 400: raise ExtractorError('Authentication failure', expected=True) self._handle_error(e, 400)