From 821ac9c0b886badab353aae3c073102e1b90fdd2 Mon Sep 17 00:00:00 2001 From: ringus1 Date: Wed, 24 Jan 2024 21:52:46 +0100 Subject: [PATCH] More messages for account suspension --- 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 6cc10b402..f3b1580d3 100644 --- a/yt_dlp/extractor/facebook.py +++ b/yt_dlp/extractor/facebook.py @@ -437,7 +437,7 @@ def _extract_from_url(self, url, video_id): sjs_data = [self._parse_json(j, video_id, fatal=False) for j in re.findall( r'data-sjs>({.*?ScheduledServerJS.*?})', webpage)] if (self.get_param('username') and self.get_param('password')) or self.get_param('cookiefile'): - if 'We\'ve suspended your account' in webpage: + if any(content in webpage for content in ['180 days left to appeal', 'suspended your account']): 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)