diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-02-18 23:12:48 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-02-18 23:12:48 +0100 |
commit | 7796e8c2cb2827ba7f7ef5e0c1dd0c299281026d (patch) | |
tree | 189ed6fce9669d9575f6c8f0dde001970d9976e7 /youtube_dl/InfoExtractors.py | |
parent | 6d4363368affe197f1c3efbd34d18b365c3d929d (diff) |
facebook: also download lq videos
Diffstat (limited to 'youtube_dl/InfoExtractors.py')
-rwxr-xr-x | youtube_dl/InfoExtractors.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py index d7ddf4e37..36f025078 100755 --- a/youtube_dl/InfoExtractors.py +++ b/youtube_dl/InfoExtractors.py @@ -2098,6 +2098,10 @@ class FacebookIE(InfoExtractor): params_raw = compat_urllib_parse.unquote(data['params']) params = json.loads(params_raw) video_url = params['hd_src'] + if not video_url: + video_url = params['sd_src'] + if not video_url: + raise ExtractorError(u'Cannot find video URL') video_duration = int(params['video_duration']) m = re.search('<h2 class="uiHeaderTitle">([^<]+)</h2>', webpage) |