mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-07-09 06:48:30 +00:00
HTTP 302 without HTTPError can be handled automatically
This commit is contained in:
parent
89aa985a47
commit
655006bc0a
@ -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 New Issue
Block a user