Sergey M․
8 years ago
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with
4 additions and
2 deletions
-
youtube_dl/extractor/facebook.py
|
|
@ -244,8 +244,10 @@ class FacebookIE(InfoExtractor): |
|
|
|
r'handleServerJS\(({.+})(?:\);|,")', webpage, 'server js data', default='{}'), video_id) |
|
|
|
for item in server_js_data.get('instances', []): |
|
|
|
if item[1][0] == 'VideoConfig': |
|
|
|
video_data = item[2][0]['videoData'] |
|
|
|
break |
|
|
|
video_item = item[2][0] |
|
|
|
if video_item.get('video_id') == video_id: |
|
|
|
video_data = video_item['videoData'] |
|
|
|
break |
|
|
|
|
|
|
|
if not video_data: |
|
|
|
if not fatal_if_no_video: |
|
|
|