From 0fb420e8b8cc5fdc8312b2cec123b63b0c6501dd Mon Sep 17 00:00:00 2001 From: Avichai Cohen Date: Sun, 8 Dec 2019 16:17:58 +0200 Subject: [PATCH] adding another situation when login is required: when we see just the title in incognito. Example: https://www.facebook.com/thegrahamnortonshow/videos/1225192167632369 --- youtube_dl/extractor/facebook.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py index 234ff3e9f..a870eb881 100644 --- a/youtube_dl/extractor/facebook.py +++ b/youtube_dl/extractor/facebook.py @@ -382,7 +382,9 @@ class FacebookIE(InfoExtractor): video_data = extract_from_jsmods_instances(tahoe_js_data) - if not video_data: + if not video_data : + if self._search_regex(r'newsFeedStream.*?

(.*?)<\/span><\/h1>', webpage, "video_title") is not None: + self.raise_login_required() raise ExtractorError('Cannot parse data') is_scheduled = '"isScheduledLive":true' in tahoe_data.secondary