- title = self._html_search_regex(r'<title>(?P<title>.+?)</title>',
- webpage, u'title')
- title = title.strip()
- links = re.findall(r'[^A-Za-z0-9]?(?:file|url):\s*["\'](http[^\'"&]*)', webpage)
- links = [compat_urllib_parse.unquote(l) for l in links]
- for link in links:
- root, pathext = os.path.splitext(compat_urllib_parse_urlparse(link).path)
- if pathext == '.png':
- thumbnail = link
- elif pathext == '.mp4':
- url = link
- ext = pathext
- if ext == title[-len(ext):]:
- title = title[:-len(ext)]
- ext = ext[1:]
- return [{
- 'id': video_id,
- 'url': url,
- 'ext': ext,
- 'title': title,
+ title = self._html_search_regex(
+ r'<title>\s*(?P<title>.+?)\s*</title>', webpage, 'title')
+ video_urls = re.findall(r'http://\w+.auengine.com/vod/.*[^\W]', webpage)
+ video_url = compat_urllib_parse.unquote(video_urls[0])
+ thumbnails = re.findall(r'http://\w+.auengine.com/thumb/.*[^\W]', webpage)
+ thumbnail = compat_urllib_parse.unquote(thumbnails[0])
+
+ if not video_url:
+ raise ExtractorError('Could not find video URL')
+
+ ext = '.' + determine_ext(video_url)
+ title = remove_end(title, ext)
+
+ return {
+ 'id': video_id,
+ 'url': video_url,
+ 'title': title,