From 7b8af56340bcc7521bb05da14d2dce6d949ce916 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Wed, 25 Dec 2013 15:24:41 +0100 Subject: [PATCH] [appletrailers] Use centralized format selection --- youtube_dl/extractor/appletrailers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/appletrailers.py b/youtube_dl/extractor/appletrailers.py index ef5644aa5..e7361ae06 100644 --- a/youtube_dl/extractor/appletrailers.py +++ b/youtube_dl/extractor/appletrailers.py @@ -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', -- 2.22.2