mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 00:33:58 +03:00
fix #17: percent-encoding Unicode URLs on Google+
This commit is contained in:
parent
7b32b7313a
commit
3341bddfca
@ -5,6 +5,9 @@ __all__ = ['googleplus_download']
|
|||||||
from ..common import *
|
from ..common import *
|
||||||
|
|
||||||
def googleplus_download(url, output_dir = '.', merge = True, info_only = False):
|
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 = get_html(url)
|
||||||
html = parse.unquote(html).replace('\/', '/')
|
html = parse.unquote(html).replace('\/', '/')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user