- 'url': audio_url,
- 'id': music_id,
- 'format_id': self._og_search_property('audio:type', webpage, 'audio format', fatal=False),
- 'format_note': '{0} {1} {2}'.format(determine_ext(audio_url), bitdepth, channels),
- 'filesize_approx': filesize,
- 'asr': int_or_none(self._html_search_regex(
- r'Samplerate</dt><dd>(\d+).*</dd>',
- sound_info, 'samplerate', fatal=False)),
- }]
+ 'url': format_url,
+ 'format_note': channels,
+ 'quality': quality,
+ } for quality, format_url in enumerate(audio_urls)]
+ self._sort_formats(formats)