Browse Source

[vimeo] Fix description extraction

totalwebcasting
Jaime Marquínez Ferrándiz 11 years ago
parent
commit
7558830fa3
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      youtube_dl/extractor/vimeo.py

+ 3
- 2
youtube_dl/extractor/vimeo.py View File

@ -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


Loading…
Cancel
Save