From: Sergey M․ Date: Sun, 28 Feb 2016 14:16:31 +0000 (+0600) Subject: [screenwavemedia] Improve formats sorting X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=2b2dfae83ef80f86e9983ded3c4514b58b1eed60;p=youtube-dl [screenwavemedia] Improve formats sorting --- 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,