- def _extract_video(self, webpage):
- description = self._html_search_regex([r'<div class="cne-video-description">(.+?)</div>',
- r'<div class="video-post-content">(.+?)</div>',
- ],
- webpage, u'description',
- fatal=False, flags=re.DOTALL)
+ def _extract_video(self, webpage, url_type):
+ if url_type != 'embed':
+ description = self._html_search_regex(
+ [
+ r'<div class="cne-video-description">(.+?)</div>',
+ r'<div class="video-post-content">(.+?)</div>',
+ ],
+ webpage, 'description', fatal=False, flags=re.DOTALL)
+ else:
+ description = None