projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f66a3c7
)
[facebook] Improve error handling (#8572)
author
Yen Chi Hsuan
<yan12125@gmail.com>
Tue, 16 Feb 2016 01:07:38 +0000
(09:07 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Tue, 16 Feb 2016 01:07:38 +0000
(09:07 +0800)
youtube_dl/extractor/facebook.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/facebook.py
b/youtube_dl/extractor/facebook.py
index ed237f081e2397fe30dc9e4e9c32d590170692de..0a9a5ca718ce171ef211fee6f04b4685452add1e 100644
(file)
--- a/
youtube_dl/extractor/facebook.py
+++ b/
youtube_dl/extractor/facebook.py
@@
-186,7
+186,7
@@
class FacebookIE(InfoExtractor):
if not video_data:
server_js_data = self._parse_json(self._search_regex(
r'handleServerJS\(({.+})\);', webpage, 'server js data'), video_id)
- for item in server_js_data
['instances']
:
+ for item in server_js_data
.get('instances', [])
:
if item[1][0] == 'VideoConfig':
video_data = video_data_list2dict(item[2][0]['videoData'])
break