Some blip.tv URLs use Unicode characters. urllib2 breaks when passing a Unicode strin...
authorJuan Carlos Garcia Segovia <jcarlosgarciasegovia@gmail.com>
Wed, 6 Jun 2012 16:24:29 +0000 (16:24 +0000)
committerJuan Carlos Garcia Segovia <jcarlosgarciasegovia@gmail.com>
Wed, 6 Jun 2012 16:24:29 +0000 (16:24 +0000)
youtube_dl/InfoExtractors.py

index 40f96ad76590bc732c4d5c422d1d839fe6eb9986..099f511cec753081a1a63c6ed40432db8011ed21 100644 (file)
@@ -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: