From 00f4ab1a8d75e0650412b4e3060d52f4059e408c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ram=C3=B3n=20Sola?= Date: Thu, 29 Jul 2021 14:27:47 +0200 Subject: [PATCH] [atresplayer] wrong credentials cause HTTP status 400 instead --- youtube_dl/extractor/atresplayer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)