mirror of
https://github.com/soimort/you-get.git
synced 2025-03-13 11:24:02 +03:00
Facebook: fix #74
This commit is contained in:
parent
95aba7fdcb
commit
e21f7bf9ce
@ -10,7 +10,7 @@ def facebook_download(url, output_dir = '.', merge = True, info_only = False):
|
|||||||
title = r1(r'<title id="pageTitle">(.+) \| Facebook</title>', html)
|
title = r1(r'<title id="pageTitle">(.+) \| Facebook</title>', html)
|
||||||
|
|
||||||
for fmt in ["hd_src", "sd_src"]:
|
for fmt in ["hd_src", "sd_src"]:
|
||||||
src = parse.unquote(unicodize(r1(r'\["' + fmt + '","([^"]*)', html)))
|
src= re.sub(r'\\/', r'/', r1(r'"' + fmt + '":"([^"]*)"', parse.unquote(unicodize(r1(r'\["params","([^"]*)"\]', html)))))
|
||||||
if src:
|
if src:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user