From d6c5fdef34cffd56670eef09bb631005acb19385 Mon Sep 17 00:00:00 2001 From: Remita Amine Date: Fri, 11 Dec 2020 21:24:08 +0100 Subject: [PATCH] [facebook] fix embed page extraction --- youtube_dl/extractor/facebook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py index 5bf09b006..bc4844adc 100644 --- a/youtube_dl/extractor/facebook.py +++ b/youtube_dl/extractor/facebook.py @@ -358,7 +358,7 @@ class FacebookIE(InfoExtractor): def extract_video_data(instances): video_data = [] for item in instances: - if item[1][0] == 'VideoConfig': + if try_get(item, lambda x: x[1][0]) == 'VideoConfig': video_item = item[2][0] if video_item.get('video_id'): video_data.append(video_item['videoData'])