diff --git a/yt_dlp/extractor/facebook.py b/yt_dlp/extractor/facebook.py index 4c1c55f7b..0bd0e9bea 100644 --- a/yt_dlp/extractor/facebook.py +++ b/yt_dlp/extractor/facebook.py @@ -501,7 +501,7 @@ def _extract_from_url(self, url, video_id): raise ExtractorError('Account is locked.', expected=True) if props := get_first(sjs_data, ( - 'require', ..., ..., ..., '__bbox', 'require', ..., ..., ..., 'rootView', 'props', + 'require', ..., ..., ..., '__bbox', 'require', ..., ..., ..., 'rootView', lambda _, v: v['title'].startswith('This content isn\'t available'))): raise ExtractorError( f'Content unavailable. Facebook said: {props.get("body") or props["title"]}', expected=True)