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,