youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 3233a68fbb1cb608534db43f358f7203e59cd2de
parent cf074e5ddd3840071df78ec509bcd74520a8f425
Author: Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Date:   Fri,  4 Mar 2016 22:18:40 +0100

[utils] update_url_query: Encode the strings in the query dict

The test case with {'test': '第二行тест'} was failing on python 2 (the non-ascii characters were replaced with '?').

Diffstat:
Myoutube_dl/utils.py | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py @@ -1743,6 +1743,7 @@ def update_url_query(url, query): parsed_url = compat_urlparse.urlparse(url) qs = compat_parse_qs(parsed_url.query) qs.update(query) + qs = encode_dict(qs) return compat_urlparse.urlunparse(parsed_url._replace( query=compat_urllib_parse.urlencode(qs, True)))