1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[appletrailers] Use centralized format selection

This commit is contained in:
Philipp Hagemeister 2013-12-25 15:24:41 +01:00
parent 539179f45b
commit 7b8af56340

View 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',