aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2020-12-11 21:24:08 +0100
committerRemita Amine <remitamine@gmail.com>2020-12-11 21:27:47 +0100
commitd6c5fdef34cffd56670eef09bb631005acb19385 (patch)
treeadeb2813edca8a28f3a4bc12000ef86358a41d20 /youtube_dl
parent4b9051cf39e5f967b0826871bb30b36889ca65fa (diff)
[facebook] fix embed page extraction
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/facebook.py2
1 files changed, 1 insertions, 1 deletions
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'])