From: Sergey M․ Date: Mon, 15 Jun 2015 15:01:26 +0000 (+0600) Subject: [youtube:search] Fix search query (Closes #5988) X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=02175a7986c4223a0ed27a872c1ca16926913e05;p=youtube-dl [youtube:search] Fix search query (Closes #5988) --- diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 3448bec4f..9e2671192 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1504,7 +1504,7 @@ class YoutubeSearchIE(SearchInfoExtractor, YoutubePlaylistIE): for pagenum in itertools.count(1): url_query = { - 'search_query': query, + 'search_query': query.encode('utf-8'), 'page': pagenum, 'spf': 'navigate', }