- title = self._html_search_regex(
- r'(?s)class="[^"]*col_description[^"]*">.*?<h3>(.*?)</h3>', webpage, 'title')
- duration = parse_duration(self._search_regex(
- r'id=["\']video_duree["\'][^>]*>([^<]+)',
- webpage, 'duration', fatal=False))
+ if formats:
+ info = {
+ 'formats': formats,
+ }
+ else:
+ info = self._parse_html5_media_entries(url, webpage, url)[0]
+
+ self._sort_formats(info['formats'])