commit 9befce2b8ce5fffda15102e126b6ebec40b9f38a
parent cb9979779865eec87517b820eac6f3b2e3f21b47
Author: Philipp Hagemeister <phihag@phihag.de>
Date: Sun, 24 Feb 2013 23:14:34 +0100
Merge remote-tracking branch 'joksnet/ytsearch_decode_request'
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py
@@ -1472,7 +1472,7 @@ class YoutubeSearchIE(InfoExtractor):
result_url = self._API_URL % (compat_urllib_parse.quote_plus(query), (50*pagenum)+1)
request = compat_urllib_request.Request(result_url)
try:
- data = compat_urllib_request.urlopen(request).read()
+ data = compat_urllib_request.urlopen(request).read().decode('utf-8')
except (compat_urllib_error.URLError, compat_http_client.HTTPException, socket.error) as err:
self._downloader.trouble(u'ERROR: unable to download API page: %s' % compat_str(err))
return