Google+: naive fix #93

This commit is contained in:
Mort Yao 2013-02-01 22:40:16 +01:00
parent e21f7bf9ce
commit 1ca750ae55

View File

@ -13,7 +13,7 @@ def googleplus_download(url, output_dir = '.', merge = True, info_only = False):
html = get_html(url) html = get_html(url)
html = parse.unquote(html).replace('\/', '/') html = parse.unquote(html).replace('\/', '/')
title = r1(r'<title>(.*)</title>', html) or r1(r'<title>(.*)\n', html) title = r1(r'<meta property="og:title" content="([^"]*)"', html) or r1(r'<title>(.*)</title>', html) or r1(r'<title>(.*)\n', html)
url2 = r1(r'"(https\://plus\.google\.com/photos/.*?)",,"image/jpeg","video"\]', html) url2 = r1(r'"(https\://plus\.google\.com/photos/.*?)",,"image/jpeg","video"\]', html)
if url2: if url2: