aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorM.Yasoob Khalid <yasoob.khld@gmail.com>2013-06-26 19:41:55 +0500
committerM.Yasoob Khalid <yasoob.khld@gmail.com>2013-06-26 19:41:55 +0500
commitb1dfdc51b1062f8e6c5a3270ec04fbf18cd5a867 (patch)
treebfd4ab22473a3b76c12603591e5ad9ae736367d1 /youtube_dl/extractor
parentf64e7695a174b597d62a7cd6211d69b5b0f0d0a0 (diff)
added .decode('ascii')
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/wimp.py4
1 files changed, 2 insertions, 2 deletions
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('\<meta name\="description" content="(.+?)" \/\>',webpage, 'video title')
thumbnail_url = self._search_regex('\<meta property\=\"og\:image" content\=\"(.+?)\" />',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,