mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-02-26 12:30:09 +09:00
[atresplayer] wrong credentials cause HTTP status 400 instead
This commit is contained in:
parent
1a24c71595
commit
00f4ab1a8d
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user