aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/InfoExtractors.py
diff options
context:
space:
mode:
authorFilippo Valsorda <filippo.valsorda@gmail.com>2012-04-13 22:09:24 +0200
committerFilippo Valsorda <filippo.valsorda@gmail.com>2012-04-13 22:09:24 +0200
commit9beb5af82ecfbb35ee534692e73fb38f4399698a (patch)
treeaa7a92788b8a00d748d3de00752047c674cbea74 /youtube_dl/InfoExtractors.py
parent9e6dd238761e6628d7bd0b6bdb7a997604de3757 (diff)
some HTMLParser bugfixes
Diffstat (limited to 'youtube_dl/InfoExtractors.py')
-rw-r--r--youtube_dl/InfoExtractors.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py
index d77154dcb..ae98e1264 100644
--- a/youtube_dl/InfoExtractors.py
+++ b/youtube_dl/InfoExtractors.py
@@ -359,8 +359,8 @@ class YoutubeIE(InfoExtractor):
pass
# description
- video_description = get_element_by_id("eow-description", video_webpage)
- if video_description: video_description = clean_html(video_description.decode('utf8'))
+ video_description = get_element_by_id("eow-description", video_webpage.decode('utf8'))
+ if video_description: video_description = clean_html(video_description)
else: video_description = ''
# closed captions
@@ -1055,8 +1055,8 @@ class VimeoIE(InfoExtractor):
video_thumbnail = config["video"]["thumbnail"]
# Extract video description
- video_description = get_element_by_id("description", webpage)
- if video_description: video_description = clean_html(video_description.decode('utf8'))
+ video_description = get_element_by_id("description", webpage.decode('utf8'))
+ if video_description: video_description = clean_html(video_description)
else: video_description = ''
# Extract upload date