6 from .common import InfoExtractor
8 class AuengineIE(InfoExtractor):
9 _VALID_URL = r'(?:http://)?(?:www\.)?auengine\.com/embed.php\?.*?file=([^&]+).*?'
11 def _real_extract(self, url):
12 mobj = re.match(self._VALID_URL, url)
13 video_id = mobj.group(1)
14 webpage = self._download_webpage(url, video_id)
15 title = self._html_search_regex(r'<title>(?P<title>.+?)</title>',
18 links = re.findall(r'[^A-Za-z0-9]?(?:file|url):\s*["\'](http[^\'"&]*)', webpage)
19 links = [urllib.unquote(l) for l in links]
21 root, pathext = os.path.splitext(urlparse.urlparse(link).path)
24 elif pathext == '.mp4':
27 if ext == title[-len(ext):]:
28 title = title[:-len(ext)]
35 'thumbnail': thumbnail,