Browse Source

[slideshare] Fix description extraction

master
Sergey M․ 8 years ago
parent
commit
d128cfe393
  1. 2
      youtube_dl/extractor/slideshare.py

2
youtube_dl/extractor/slideshare.py

@ -39,7 +39,7 @@ class SlideshareIE(InfoExtractor):
ext = info['jsplayer']['video_extension']
video_url = compat_urlparse.urljoin(bucket, doc + '-SD.' + ext)
description = self._html_search_regex(
r'<p\s+(?:style="[^"]*"\s+)?class="description.*?"[^>]*>(.*?)</p>', webpage,
r'<p\s+(?:style="[^"]*"\s+)?class=".*?description.*?"[^>]*>(.*?)</p>', webpage,
'description', fatal=False)
return {

Loading…
Cancel
Save