]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/wistia.py
Update changelog.
[youtubedl] / youtube_dl / extractor / wistia.py
index e1748c2613bbcf94bb36b706ce7ddfdde6b2b86c..bc31c2e64f22999adf575e60d59bde3d903bb9cc 100644 (file)
@@ -44,8 +44,10 @@ class WistiaIE(InfoExtractor):
                 'height': a['height'],
                 'filesize': a['size'],
                 'ext': a['ext'],
+                'preference': 1 if atype == 'original' else None,
             })
-        formats.sort(key=lambda a: a['filesize'])
+
+        self._sort_formats(formats)
 
         return {
             'id': video_id,