From 2b2dfae83ef80f86e9983ded3c4514b58b1eed60 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sergey=20M=E2=80=A4?= Date: Sun, 28 Feb 2016 20:16:31 +0600 Subject: [PATCH] [screenwavemedia] Improve formats sorting --- youtube_dl/extractor/screenwavemedia.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/screenwavemedia.py b/youtube_dl/extractor/screenwavemedia.py index d2af26c1c..8e77788ae 100644 --- a/youtube_dl/extractor/screenwavemedia.py +++ b/youtube_dl/extractor/screenwavemedia.py @@ -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, -- 2.22.2