Skip to content

A feature-rich command-line audio/video downloader

[slideshare] Fix description

Philipp Hagemeisterc82b1fdad6f2
diff --git a/youtube_dl/extractor/slideshare.py b/youtube_dl/extractor/slideshare.py
index 9c62825cc7..53c3c92203 100644
--- a/youtube_dl/extractor/slideshare.py
+++ b/youtube_dl/extractor/slideshare.py
@@ -39,7 +39,8 @@ class SlideshareIE(InfoExtractor):
ext = info['jsplayer']['video_extension']
video_url = compat_urlparse.urljoin(bucket, doc + '-SD.' + ext)
description = self._html_search_regex(
- r'<p class="description.*?"[^>]*>(.*?)</p>', webpage, 'description')
+ r'<p\s+(?:style="[^"]*"\s+)?class="description.*?"[^>]*>(.*?)</p>', webpage,
+ 'description', fatal=False)
return {
'_type': 'video',