youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit cb64ccc71531fd7491f65ad12fa1d68ac5de70e1
parent f66a3c7bc2c675b0a053c6cfab6f755cb9f5bbda
Author: Yen Chi Hsuan <yan12125@gmail.com>
Date:   Tue, 16 Feb 2016 09:07:38 +0800

[facebook] Improve error handling (#8572)

Diffstat:
Myoutube_dl/extractor/facebook.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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