]> git.bitcoin.ninja Git - youtube-dl/commitdiff
YoutubeSearchIE: the query is a str, in python 3 it fails if decode is called
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Tue, 11 Jun 2013 17:15:07 +0000 (19:15 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Tue, 11 Jun 2013 17:15:07 +0000 (19:15 +0200)
youtube_dl/InfoExtractors.py

index 24a77a1abba247c49234189d794d7da6cc83486f..282334635079560723bf38562abae0032bf15b96 100755 (executable)
@@ -1424,7 +1424,6 @@ class YoutubeSearchIE(SearchInfoExtractor):
 
     def report_download_page(self, query, pagenum):
         """Report attempt to download search page with given number."""
-        query = query.decode(preferredencoding())
         self._downloader.to_screen(u'[youtube] query "%s": Downloading page %s' % (query, pagenum))
 
     def _get_n_results(self, query, n):