fix #17: percent-encoding Unicode URLs on Google+

This commit is contained in:
Mort Yao 2012-10-23 21:47:51 +02:00
parent 7b32b7313a
commit 3341bddfca

View File

@ -5,6 +5,9 @@ __all__ = ['googleplus_download']
from ..common import *
def googleplus_download(url, output_dir = '.', merge = True, info_only = False):
# Percent-encoding Unicode URL
url = parse.quote(url, safe = ':/')
html = get_html(url)
html = parse.unquote(html).replace('\/', '/')