- title = self._html_search_meta('title', webpage)
- description = self._html_search_meta('description', webpage)
+ quality = qualities(['flv', 'mobile', 'tablet', '720p'])
+ formats = []
+ for variant in media.get('variants', []):
+ uri = variant.get('uri')
+ if not uri:
+ continue
+ version = variant.get('version')
+ formats.append({
+ 'url': uri,
+ 'format_id': version,
+ 'quality': quality(version),
+ })
+ self._sort_formats(formats)