mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-01 02:49:31 +00:00
[vimeo] Fix description extraction
This commit is contained in:
parent
867274e997
commit
7558830fa3
|
@ -257,8 +257,9 @@ def _real_extract(self, url):
|
||||||
# Extract video description
|
# Extract video description
|
||||||
video_description = None
|
video_description = None
|
||||||
try:
|
try:
|
||||||
video_description = get_element_by_attribute("itemprop", "description", webpage)
|
video_description = get_element_by_attribute("class", "description_wrapper", webpage)
|
||||||
if video_description: video_description = clean_html(video_description)
|
if video_description:
|
||||||
|
video_description = clean_html(video_description)
|
||||||
except AssertionError as err:
|
except AssertionError as err:
|
||||||
# On some pages like (http://player.vimeo.com/video/54469442) the
|
# On some pages like (http://player.vimeo.com/video/54469442) the
|
||||||
# html tags are not closed, python 2.6 cannot handle it
|
# html tags are not closed, python 2.6 cannot handle it
|
||||||
|
|
Loading…
Reference in a new issue