From: M.Yasoob Khalid Date: Wed, 26 Jun 2013 14:41:55 +0000 (+0500) Subject: added .decode('ascii') X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=b1dfdc51b1062f8e6c5a3270ec04fbf18cd5a867;p=youtube-dl added .decode('ascii') --- diff --git a/youtube_dl/extractor/wimp.py b/youtube_dl/extractor/wimp.py index 9ff5112a6..a548e0fa0 100644 --- a/youtube_dl/extractor/wimp.py +++ b/youtube_dl/extractor/wimp.py @@ -13,8 +13,8 @@ class WimpIE(InfoExtractor): title = self._search_regex('\',webpage, 'video title') thumbnail_url = self._search_regex('\',webpage,'video thumbnail') googleString = self._search_regex("googleCode = '(.*?)'", webpage,'file url') - googleString = base64.b64decode(googleString) - final_url = self._search_regex(b'","(.*?)"', googleString,'final video url') + googleString = base64.b64decode(googleString).decode('ascii') + final_url = self._search_regex('","(.*?)"', googleString,'final video url') ext = final_url.split('.')[-1] return [{ 'id': video_id,