HTTP 302 without HTTPError can be handled automatically

This commit is contained in:
Mozi 2025-01-28 18:06:46 +00:00
parent 89aa985a47
commit 655006bc0a

View file

@ -51,7 +51,7 @@ class VidioBaseIE(InfoExtractor):
'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):