1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-11-23 20:12:51 +08:00

YoutubeSearchIE: the query is a str, in python 3 it fails if decode is called

This commit is contained in:
Jaime Marquínez Ferrándiz 2013-06-11 19:15:07 +02:00
parent 9abc6c8b31
commit f380401bbd

View File

@ -1424,7 +1424,6 @@ class YoutubeSearchIE(SearchInfoExtractor):
def report_download_page(self, query, pagenum): def report_download_page(self, query, pagenum):
"""Report attempt to download search page with given number.""" """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)) self._downloader.to_screen(u'[youtube] query "%s": Downloading page %s' % (query, pagenum))
def _get_n_results(self, query, n): def _get_n_results(self, query, n):