mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-16 05:13:21 +00:00
[atresplayer] handle HTTP 400 on login as authentication failure
This commit is contained in:
parent
408965e75d
commit
fc57c90cfe
|
@ -65,6 +65,8 @@ def _login(self):
|
|||
'password': password,
|
||||
}))
|
||||
except ExtractorError as e:
|
||||
if isinstance(e.cause, compat_HTTPError) and e.cause.code == 400:
|
||||
raise ExtractorError('Authentication failure', expected=True)
|
||||
self._handle_error(e, 400)
|
||||
|
||||
def _real_extract(self, url):
|
||||
|
|
Loading…
Reference in a new issue