瀏覽代碼

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

Mort Yao 12 年之前
父節點
當前提交
3341bddfca
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      you_get/downloader/googleplus.py

+ 3 - 0
you_get/downloader/googleplus.py

@@ -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('\/', '/')