mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
HTTP 302 without HTTPError can be handled automatically
This commit is contained in:
parent
89aa985a47
commit
655006bc0a
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ def is_logged_in():
|
|||
'authenticity_token': self._html_search_meta('csrf-token', login_page, fatal=True),
|
||||
})
|
||||
login_post, login_post_urlh = self._download_webpage_handle(
|
||||
self._LOGIN_URL, None, 'Logging in', data=urlencode_postdata(login_form), expected_status=[302, 401])
|
||||
self._LOGIN_URL, None, 'Logging in', data=urlencode_postdata(login_form), expected_status=401)
|
||||
|
||||
if login_post_urlh.status == 401:
|
||||
if get_element_by_class('onboarding-content-register-popup__title', login_post):
|
||||
|
|
Loading…
Reference in a new issue