From: Juan Carlos Garcia Segovia Date: Wed, 6 Jun 2012 16:24:29 +0000 (+0000) Subject: Some blip.tv URLs use Unicode characters. urllib2 breaks when passing a Unicode strin... X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=f1927d71e4b0cd515324071f8d97bcd673fcc9bf;p=youtube-dl Some blip.tv URLs use Unicode characters. urllib2 breaks when passing a Unicode string. it needs a UTF-8 byte buffer --- 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: