- quality_order = qualities(['Reg', 'Hi'])
- formats = []
- for url, q in re.findall(
- r'<a\s+href="(?P<url>[^"]+)".*?>(?:<button[^>]*>)?(?P<q>[^<]+)(?:</button>)?</a>', links_code):
- format_id = compat_urllib_parse_urlparse(url).scheme + '-' + q
- formats.append({
- 'format_id': format_id,
- 'url': url,
- 'quality': quality_order(q),
- })
- self._sort_formats(formats)
+ title = remove_end(self._html_search_regex(
+ r'<title>(.*?)-\s*Vuclip</title>', webpage, 'title').strip(), ' - Video')