4 from .common import InfoExtractor
7 compat_urllib_parse_urlparse,
10 class AUEngineIE(InfoExtractor):
11 _VALID_URL = r'(?:http://)?(?:www\.)?auengine\.com/embed.php\?.*?file=([^&]+).*?'
13 def _real_extract(self, url):
14 mobj = re.match(self._VALID_URL, url)
15 video_id = mobj.group(1)
16 webpage = self._download_webpage(url, video_id)
17 title = self._html_search_regex(r'<title>(?P<title>.+?)</title>',
20 links = re.findall(r'[^A-Za-z0-9]?(?:file|url):\s*["\'](http[^\'"&]*)', webpage)
21 links = [compat_urllib_parse.unquote(l) for l in links]
23 root, pathext = os.path.splitext(compat_urllib_parse_urlparse(link).path)
26 elif pathext == '.mp4':
29 if ext == title[-len(ext):]:
30 title = title[:-len(ext)]
37 'thumbnail': thumbnail,