commit 7558830fa3fee541fbc42fb00023ff1a70206a2d
parent 867274e997f8aa3f035af4489947ad743c954e7e
Author: Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Date: Sun, 4 May 2014 21:48:08 +0200
[vimeo] Fix description extraction
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/youtube_dl/extractor/vimeo.py b/youtube_dl/extractor/vimeo.py
@@ -257,8 +257,9 @@ class VimeoIE(VimeoBaseInfoExtractor, SubtitlesInfoExtractor):
# Extract video description
video_description = None
try:
- video_description = get_element_by_attribute("itemprop", "description", webpage)
- if video_description: video_description = clean_html(video_description)
+ video_description = get_element_by_attribute("class", "description_wrapper", webpage)
+ if video_description:
+ video_description = clean_html(video_description)
except AssertionError as err:
# On some pages like (http://player.vimeo.com/video/54469442) the
# html tags are not closed, python 2.6 cannot handle it