- title = self._html_search_regex(r'<title>(?P<title>.+?)</title>', webpage, 'title')
- title = title.strip()
- 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 =="":
+ 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: