[wistia] Use centralized sorting
authorPhilipp Hagemeister <phihag@phihag.de>
Wed, 25 Dec 2013 14:20:14 +0000 (15:20 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Wed, 25 Dec 2013 14:20:14 +0000 (15:20 +0100)
youtube_dl/extractor/wistia.py

index e1748c2613bbcf94bb36b706ce7ddfdde6b2b86c..584550455ad8dbf611424ad6606411850dd72d3e 100644 (file)
@@ -45,7 +45,8 @@ class WistiaIE(InfoExtractor):
                 'filesize': a['size'],
                 'ext': a['ext'],
             })
-        formats.sort(key=lambda a: a['filesize'])
+
+        self._sort_formats(formats)
 
         return {
             'id': video_id,