aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2012-12-11 17:00:11 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2012-12-11 17:00:11 +0100
commit55c05398724f8bbb58db1b5ea55ad22038155c36 (patch)
tree3c7e3fea1c6268821cb48e69578d3d9be50ae8e7 /youtube_dl
parentd050de77f94a5dc9071c0b459ba62cb09c6696c4 (diff)
Fix blip.tv in python3
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/InfoExtractors.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py
index 9cfff153b..1d774b91e 100644
--- a/youtube_dl/InfoExtractors.py
+++ b/youtube_dl/InfoExtractors.py
@@ -2262,7 +2262,7 @@ class BlipTVIE(InfoExtractor):
else:
cchar = '?'
json_url = url + cchar + 'skin=json&version=2&no_wrap=1'
- request = compat_urllib_request.Request(json_url.encode('utf-8'))
+ request = compat_urllib_request.Request(json_url)
self.report_extraction(mobj.group(1))
info = None
try:
@@ -2287,7 +2287,8 @@ class BlipTVIE(InfoExtractor):
return
if info is None: # Regular URL
try:
- json_code = urlh.read()
+ json_code_bytes = urlh.read()
+ json_code = json_code_bytes.decode('utf-8')
except (compat_urllib_error.URLError, compat_http_client.HTTPException, socket.error) as err:
self._downloader.trouble(u'ERROR: unable to read video info webpage: %s' % compat_str(err))
return