Google+: fix #107

This commit is contained in:
Mort Yao 2013-02-15 00:33:52 +01:00
parent dbe490f518
commit 56200b7e1c

View File

@ -15,7 +15,7 @@ def googleplus_download(url, output_dir = '.', merge = True, info_only = False):
title = r1(r'<meta property="og:title" content="([^"]*)"', html) or 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'<a href="([^"]+)" target="_blank" class="Mn" >', html)
if url2: if url2:
html = get_html(url2) html = get_html(url2)
html = parse.unquote(html.replace('\/', '/')) html = parse.unquote(html.replace('\/', '/'))