u'description':u'This was a keynote presentation at the NoSQL Now! 2013 Conference & Expo (http://www.nosqlnow.com). This presentation was given by Adrian Cockcroft from Netflix',
'description':'This was a keynote presentation at the NoSQL Now! 2013 Conference & Expo (http://www.nosqlnow.com). This presentation was given by Adrian Cockcroft from Netflix.',
},
},
}
}
@ -26,15 +29,17 @@ class SlideshareIE(InfoExtractor):
webpage=self._download_webpage(url,page_title)
webpage=self._download_webpage(url,page_title)
slideshare_obj=self._search_regex(
slideshare_obj=self._search_regex(
r'var slideshare_object = ({.*?}); var user_info =',
r'var slideshare_object = ({.*?}); var user_info =',
webpage,u'slideshare object')
webpage,'slideshare object')
info=json.loads(slideshare_obj)
info=json.loads(slideshare_obj)
ifinfo['slideshow']['type']!=u'video':
raiseExtractorError(u'Webpage type is "%s": only video extraction is supported for Slideshare'%info['slideshow']['type'],expected=True)
ifinfo['slideshow']['type']!='video':
raiseExtractorError('Webpage type is "%s": only video extraction is supported for Slideshare'%info['slideshow']['type'],expected=True)