aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorJuan Carlos Garcia Segovia <jcarlosgarciasegovia@gmail.com>2012-06-06 16:24:29 +0000
committerJuan Carlos Garcia Segovia <jcarlosgarciasegovia@gmail.com>2012-06-06 16:24:29 +0000
commitf1927d71e4b0cd515324071f8d97bcd673fcc9bf (patch)
tree42bbf25b21d9438c52a57ec32c54d407b73bc64e /youtube_dl
parent17f3c40a31e6667bb7b18cbe7cf24e5728d7aabd (diff)
Some blip.tv URLs use Unicode characters. urllib2 breaks when passing a Unicode string. it needs a UTF-8 byte buffer
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/InfoExtractors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py
index 40f96ad76..099f511ce 100644
--- a/youtube_dl/InfoExtractors.py
+++ b/youtube_dl/InfoExtractors.py
@@ -1912,7 +1912,7 @@ class BlipTVIE(InfoExtractor):
else:
cchar = '?'
json_url = url + cchar + 'skin=json&version=2&no_wrap=1'
- request = urllib2.Request(json_url)
+ request = urllib2.Request(json_url.encode('utf-8'))
self.report_extraction(mobj.group(1))
info = None
try: