summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2014-04-11 02:19:15 +0200
committerPhilipp Hagemeister <[email protected]>2014-04-11 02:19:15 +0200
commitc82b1fdad6f27d78413c30cca9bc84a5c384afbf (patch)
tree0be6c0273ac9259f18726c0a133fc5a77c238ac3
parentb0fb63abe864fd8a27ffa4f1c187abd7e4afb8fe (diff)
downloadyoutube-dl-c82b1fdad6f27d78413c30cca9bc84a5c384afbf.tar.gz
youtube-dl-c82b1fdad6f27d78413c30cca9bc84a5c384afbf.zip
[slideshare] Fix description
-rw-r--r--youtube_dl/extractor/slideshare.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/slideshare.py b/youtube_dl/extractor/slideshare.py
index 9c62825cc..53c3c9220 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',