[appletrailers] Use centralized format selection
authorPhilipp Hagemeister <phihag@phihag.de>
Wed, 25 Dec 2013 14:24:41 +0000 (15:24 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Wed, 25 Dec 2013 14:24:41 +0000 (15:24 +0100)
youtube_dl/extractor/appletrailers.py

index ef5644aa54fe28002dc4d8c76308941c264252e3..e7361ae06e379cb44b1512c9b316e2cfe49554a0 100644 (file)
@@ -110,7 +110,8 @@ class AppleTrailersIE(InfoExtractor):
                     'width': format['width'],
                     'height': int(format['height']),
                 })
-            formats = sorted(formats, key=lambda f: (f['height'], f['width']))
+
+            self._sort_formats(formats)
 
             playlist.append({
                 '_type': 'video',