mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-02-26 20:40:10 +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,
|
'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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user