[atresplayer] wrong credentials cause HTTP status 400 instead

This commit is contained in:
Ramón Sola 2021-07-29 14:27:47 +02:00
parent 1a24c71595
commit 00f4ab1a8d

View File

@ -71,7 +71,7 @@ class AtresPlayerIE(InfoExtractor):
'password': password, 'password': password,
})) }))
except ExtractorError as e: 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) raise ExtractorError('Authentication failure', expected=True)
self._handle_error(e, 400) self._handle_error(e, 400)