aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/InfoExtractors.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-02-24 23:14:34 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-02-24 23:14:34 +0100
commit9befce2b8ce5fffda15102e126b6ebec40b9f38a (patch)
tree81bbda44edfd9099b4b2ffcfd8dcaa38c79de90c /youtube_dl/InfoExtractors.py
parentcb9979779865eec87517b820eac6f3b2e3f21b47 (diff)
parentd1b7a243548643f364fd129f6993ab16b2fa24f8 (diff)
Merge remote-tracking branch 'joksnet/ytsearch_decode_request'
Diffstat (limited to 'youtube_dl/InfoExtractors.py')
-rwxr-xr-xyoutube_dl/InfoExtractors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py
index 378f8a634..3b1e14ba9 100755
--- 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