From 655006bc0a7bf042474547a5fcea9f1c39ec87a4 Mon Sep 17 00:00:00 2001 From: Mozi <29089388+pzhlkj6612@users.noreply.github.com> Date: Tue, 28 Jan 2025 18:06:46 +0000 Subject: [PATCH] HTTP 302 without HTTPError can be handled automatically --- yt_dlp/extractor/vidio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/vidio.py b/yt_dlp/extractor/vidio.py index 9a3fe8e5f..f84e1bfdb 100644 --- a/yt_dlp/extractor/vidio.py +++ b/yt_dlp/extractor/vidio.py @@ -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):