From 8f0d32fa838afd7e8e97735846282114325fb137 Mon Sep 17 00:00:00 2001 From: ringus1 Date: Wed, 31 Jan 2024 17:04:09 +0100 Subject: [PATCH] Simplify login error check --- yt_dlp/extractor/facebook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/facebook.py b/yt_dlp/extractor/facebook.py index 0bd0e9bea..f1daa1fd6 100644 --- a/yt_dlp/extractor/facebook.py +++ b/yt_dlp/extractor/facebook.py @@ -445,7 +445,7 @@ def _perform_login(self, username, password): try: login_results = self._download_webpage(request, None, note='Logging in', errnote='unable to fetch login page') - if self._html_search_regex(r'(Your Request Couldn\'t be Processed)', login_results, 'request error', default=None) is not None: + if "Your Request Couldn" in login_results: raise ExtractorError('Failed to perform login request.') if re.search(r'', login_results) is not None: