- 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
+ video_url = re.findall(r'http://\w+.auengine.com/vod/.*[^\W]', webpage)
+ video_url = map(compat_urllib_parse.unquote, video_url)[0]
+ thumbnail = re.findall(r'http://\w+.auengine.com/thumb/.*[^\W]', webpage)
+ thumbnail = map(compat_urllib_parse.unquote, thumbnail)[0]
+
+ if video_url == "" and thumbnail =="":
+ raise ExtractorError('Could not find video URL')
+ ext = '.' + determine_ext(video_url)