1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-28 21:22:13 +00:00

[screenwavemedia] Improve formats sorting

This commit is contained in:
Sergey M․ 2016-02-28 20:16:31 +06:00
parent 6c10dbeae9
commit 2b2dfae83e

View file

@ -88,7 +88,7 @@ class ScreenwaveMediaIE(InfoExtractor):
'ext': source.get('type'),
'height': height,
})
self._sort_formats(formats)
self._sort_formats(formats, field_preference=('height', 'width', 'tbr', 'format_id'))
return {
'id': video_id,