diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-02-24 23:14:34 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-02-24 23:14:34 +0100 |
commit | 9befce2b8ce5fffda15102e126b6ebec40b9f38a (patch) | |
tree | 81bbda44edfd9099b4b2ffcfd8dcaa38c79de90c | |
parent | cb9979779865eec87517b820eac6f3b2e3f21b47 (diff) | |
parent | d1b7a243548643f364fd129f6993ab16b2fa24f8 (diff) |
Merge remote-tracking branch 'joksnet/ytsearch_decode_request'
-rwxr-xr-x | youtube_dl/InfoExtractors.py | 2 |
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 |