1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 08:47:41 +00:00

[utils] Don't touch URLs if not necessary

Fix test_Generic_15 (Google redirect)
This commit is contained in:
Yen Chi Hsuan 2016-04-09 19:27:54 +08:00
parent bffb245a48
commit cacd996662

View file

@ -1792,6 +1792,8 @@ def urlencode_postdata(*args, **kargs):
def update_url_query(url, query):
if not query:
return url
parsed_url = compat_urlparse.urlparse(url)
qs = compat_parse_qs(parsed_url.query)
qs.update(query)