[youtube:search] Fix search query (Closes #5988)
authorSergey M․ <dstftw@gmail.com>
Mon, 15 Jun 2015 15:01:26 +0000 (21:01 +0600)
committerSergey M․ <dstftw@gmail.com>
Mon, 15 Jun 2015 15:01:26 +0000 (21:01 +0600)
youtube_dl/extractor/youtube.py

index 3448bec4fdc96b361c0b071ab12832583533c14f..9e26711924241b62b955c88245b05b8a89fde5c4 100644 (file)
@@ -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',
             }