projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b9051c
)
[facebook] fix embed page extraction
author
Remita Amine
<remitamine@gmail.com>
Fri, 11 Dec 2020 20:24:08 +0000
(21:24 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Fri, 11 Dec 2020 20:27:47 +0000
(21:27 +0100)
youtube_dl/extractor/facebook.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/facebook.py
b/youtube_dl/extractor/facebook.py
index 5bf09b006f074a06351c1589472b49f0cb0b659a..bc4844adcf9d53a567c9e92eb2ed5b4aa7baadac 100644
(file)
--- 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'])