aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-12-25 15:24:41 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-12-25 15:24:41 +0100
commit7b8af56340bcc7521bb05da14d2dce6d949ce916 (patch)
treec3bce5709743f148fa9dd4e0602307566f486084 /youtube_dl
parent539179f45bbeecefecfec4cba40dde7c7f4a813c (diff)
[appletrailers] Use centralized format selection
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/appletrailers.py3
1 files changed, 2 insertions, 1 deletions
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',