Google+: fix #168

This commit is contained in:
Mort Yao 2013-04-23 17:49:08 +02:00
parent ac131d78b5
commit e859acce4d

View File

@ -19,7 +19,7 @@ def google_download(url, output_dir = '.', merge = True, info_only = False):
title = r1(r'<title>(.*)</title>', html) or r1(r'<title>(.*)\n', html) or r1(r'<meta property="og:title" content="([^"]*)"', html) title = r1(r'<title>(.*)</title>', html) or r1(r'<title>(.*)\n', html) or r1(r'<meta property="og:title" content="([^"]*)"', html)
url2 = r1(r'<a href="([^"]+)" target="_blank" class="Mn" >', html) url2 = r1(r'<a href="(https://plus.google.com/photos/[^"]+)" target="_blank" class', html)
if url2: if url2:
html = get_html(url2) html = get_html(url2)
html = parse.unquote(html.replace('\/', '/')) html = parse.unquote(html.replace('\/', '/'))