]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[screenwavemedia] Improve formats sorting
authorSergey M․ <dstftw@gmail.com>
Sun, 28 Feb 2016 14:16:31 +0000 (20:16 +0600)
committerSergey M․ <dstftw@gmail.com>
Sun, 28 Feb 2016 14:16:31 +0000 (20:16 +0600)
youtube_dl/extractor/screenwavemedia.py

index d2af26c1ccf57377420b0594874525e9713dde22..8e77788aedaf8d8bb8a1c438fdbdec802f38ce63 100644 (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,