From 4e3b3030168927bd589343c51278040a5cec6203 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Sat, 21 Nov 2015 20:55:48 +0600 Subject: [PATCH] [soundcloud:search] Fix non-ASCII searches --- youtube_dl/extractor/soundcloud.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/soundcloud.py b/youtube_dl/extractor/soundcloud.py index a5c40514b6..66bb1cb542 100644 --- a/youtube_dl/extractor/soundcloud.py +++ b/youtube_dl/extractor/soundcloud.py @@ -14,6 +14,7 @@ compat_urllib_parse, ) from ..utils import ( + encode_dict, ExtractorError, int_or_none, unified_strdate, @@ -506,7 +507,7 @@ def _get_collection(self, endpoint, collection_id, **query): for i in itertools.count(): if not next_url: query['offset'] = i * results_per_page - data = compat_urllib_parse.urlencode(query) + data = compat_urllib_parse.urlencode(encode_dict(query)) next_url = '{0}{1}?{2}'.format( self._API_V2_BASE, endpoint, data)