Fix Escapist IE
authorPhilipp Hagemeister <phihag@phihag.de>
Wed, 23 May 2012 17:19:31 +0000 (19:19 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Wed, 23 May 2012 17:19:31 +0000 (19:19 +0200)
youtube_dl/InfoExtractors.py

index ee8783ffd6bd3ad5ce72f4c93216e25f415ea07b..0fc39163ee2a74131ed84442c68f388a72fad0f1 100644 (file)
@@ -2188,11 +2188,12 @@ class EscapistIE(InfoExtractor):
 
                self.report_extraction(showName)
                try:
-                       webPage = urllib2.urlopen(url).read()
+                       webPageBytes = urllib2.urlopen(url).read()
                except (urllib2.URLError, httplib.HTTPException, socket.error), err:
                        self._downloader.trouble(u'ERROR: unable to download webpage: ' + unicode(err))
                        return
 
+               webPage = webPageBytes.decode('utf-8')
                descMatch = re.search('<meta name="description" content="([^"]*)"', webPage)
                description = unescapeHTML(descMatch.group(1))
                imgMatch = re.search('<meta property="og:image" content="([^"]*)"', webPage)