From 4916a777205911efe3c6267b70cee802318281d8 Mon Sep 17 00:00:00 2001 From: ringus1 Date: Wed, 24 Jan 2024 12:22:09 +0100 Subject: [PATCH] Add one more case when account is locked --- yt_dlp/extractor/facebook.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yt_dlp/extractor/facebook.py b/yt_dlp/extractor/facebook.py index 7fb4acf9c..6cc10b402 100644 --- a/yt_dlp/extractor/facebook.py +++ b/yt_dlp/extractor/facebook.py @@ -441,6 +441,8 @@ def _extract_from_url(self, url, video_id): raise ExtractorError('Login account is suspended.', expected=True) if 'send a code to confirm the mobile number you give us' in webpage: raise ExtractorError('Mobile number checkpoint for logged in user.', expected=True) + if 'your account has been locked' in webpage: + raise ExtractorError('Account is locked.', expected=True) userinfo = get_first(sjs_data, ( 'require', ..., ..., ..., '__bbox', 'define',