From 88ac2d39158069a412dd568f628f478c31684557 Mon Sep 17 00:00:00 2001 From: ringus1 Date: Mon, 5 Feb 2024 11:46:58 +0100 Subject: [PATCH] Flake fix --- yt_dlp/extractor/facebook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yt_dlp/extractor/facebook.py b/yt_dlp/extractor/facebook.py index 3bb29d0c8..a19351786 100644 --- a/yt_dlp/extractor/facebook.py +++ b/yt_dlp/extractor/facebook.py @@ -493,8 +493,8 @@ def _extract_from_url(self, url, video_id): if login_data: logged_in = get_first(sjs_data, ( - 'require', ..., ..., ..., '__bbox', 'define', - lambda _, v: 'CurrentUserInitialData' in v, ..., 'ACCOUNT_ID'), default='0') != '0' + 'require', ..., ..., ..., '__bbox', 'define', + lambda _, v: 'CurrentUserInitialData' in v, ..., 'ACCOUNT_ID'), default='0') != '0' if logged_in: if any(content in webpage for content in ['180 days left to appeal', 'suspended your account']): raise ExtractorError('Your account is suspended', expected=True)