mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-01-30 20:34:40 +01: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 @@ 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):
|
||||
|
|
Loading…
Add table
Reference in a new issue