- video_url = self._search_regex(r'data-video="(.*?)">',
- webpage_src, u'video URL')
- if 'mp4' in video_url:
- ext = 'mp4'
- else:
- ext = 'flv'
- video_title = self._html_search_regex(r"<title>(.*?)</title>",
- webpage_src, u'title').rpartition(u'\u2014 Kickstarter')[0].strip()
+ title = self._html_search_regex(
+ r'<title>\s*(.*?)(?:\s*— Kickstarter)?\s*</title>',
+ webpage, 'title')
+ video_url = self._search_regex(
+ r'data-video-url="(.*?)"',
+ webpage, 'video URL', default=None)
+ if video_url is None: # No native kickstarter, look for embedded videos
+ return {
+ '_type': 'url_transparent',
+ 'ie_key': 'Generic',
+ 'url': url,
+ 'title': title,
+ }