Facebook: fix #74

This commit is contained in:
Mort Yao 2013-01-31 17:48:42 +01:00
parent 95aba7fdcb
commit e21f7bf9ce

View File

@ -10,7 +10,7 @@ def facebook_download(url, output_dir = '.', merge = True, info_only = False):
title = r1(r'<title id="pageTitle">(.+) \| Facebook</title>', html)
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:
break