adding another situation when login is required: when we see just the title in incognito. Example: https://www.facebook.com/thegrahamnortonshow/videos/1225192167632369

This commit is contained in:
Avichai Cohen 2019-12-08 16:17:58 +02:00
parent be7c65a783
commit 0fb420e8b8

View File

@ -382,7 +382,9 @@ class FacebookIE(InfoExtractor):
video_data = extract_from_jsmods_instances(tahoe_js_data) video_data = extract_from_jsmods_instances(tahoe_js_data)
if not video_data: if not video_data :
if self._search_regex(r'newsFeedStream.*?<h1><span class.*?>(.*?)<\/span><\/h1>', webpage, "video_title") is not None:
self.raise_login_required()
raise ExtractorError('Cannot parse data') raise ExtractorError('Cannot parse data')
is_scheduled = '"isScheduledLive":true' in tahoe_data.secondary is_scheduled = '"isScheduledLive":true' in tahoe_data.secondary