mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-28 21:22:13 +00:00
facebook: also download lq videos
This commit is contained in:
parent
6d4363368a
commit
7796e8c2cb
1 changed files with 4 additions and 0 deletions
|
@ -2098,6 +2098,10 @@ class FacebookIE(InfoExtractor):
|
||||||
params_raw = compat_urllib_parse.unquote(data['params'])
|
params_raw = compat_urllib_parse.unquote(data['params'])
|
||||||
params = json.loads(params_raw)
|
params = json.loads(params_raw)
|
||||||
video_url = params['hd_src']
|
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'])
|
video_duration = int(params['video_duration'])
|
||||||
|
|
||||||
m = re.search('<h2 class="uiHeaderTitle">([^<]+)</h2>', webpage)
|
m = re.search('<h2 class="uiHeaderTitle">([^<]+)</h2>', webpage)
|
||||||
|
|
Loading…
Reference in a new issue