[facebook] fix embed page extraction
authorRemita Amine <remitamine@gmail.com>
Fri, 11 Dec 2020 20:24:08 +0000 (21:24 +0100)
committerRemita Amine <remitamine@gmail.com>
Fri, 11 Dec 2020 20:27:47 +0000 (21:27 +0100)
youtube_dl/extractor/facebook.py

index 5bf09b006f074a06351c1589472b49f0cb0b659a..bc4844adcf9d53a567c9e92eb2ed5b4aa7baadac 100644 (file)
@@ -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'])