- webpage, u'title').strip()
-
- # Get the video url
- result = re.compile(r'<div id="vidPlayer"\s+data-url="([^"]+)"\s+previewer-file="([^"]+)"', re.S).search(webpage)
- if result is None:
- raise ExtractorError(u'ERROR: unable to extract video_url')
-
- video_url, video_thumb = result.group(1,2)
-
- info = {'id': video_id,
- 'url': video_url,
- 'title': video_title,
- 'thumbnail': video_thumb,
- 'ext': 'mp4',
- 'age_limit': 18}
-
- return [info]
+ webpage, 'title').strip()
+
+ video_url = self._html_search_regex(
+ r'(?s)<div id="vidPlayer"\s+data-url="([^"]+)"',
+ webpage, 'video URL')
+ thumbnail = self._html_search_regex(
+ r'(?s)<div id="vidPlayer"\s+.*?previewer-file="([^"]+)"',
+ webpage, 'thumbnail', fatal=False)
+
+ return {
+ 'id': video_id,
+ 'url': video_url,
+ 'title': video_title,
+ 'thumbnail': thumbnail,
+ 'age_limit': 18
+ }