+ http_base = self._search_regex(
+ r'EXPRESSINSTALL_SWF\s*=\s*[^"]*"((?:https?:)?//[^/"]+/)', webpage,
+ 'HTTP base URL')
+
+ formats = [{
+ 'format_id': 'rtmp',
+ 'url': video_url,
+ 'ext': extension,
+ 'play_path': playpath,
+ }, {
+ 'format_id': 'http',
+ 'url': compat_urlparse.urljoin(url, http_base) + real_id,
+ }]
+ self._sort_formats(formats)
+