mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-15 18:34:22 +00:00
[appletrailers] Use centralized format selection
This commit is contained in:
parent
539179f45b
commit
7b8af56340
@ -110,7 +110,8 @@ class AppleTrailersIE(InfoExtractor):
|
|||||||
'width': format['width'],
|
'width': format['width'],
|
||||||
'height': int(format['height']),
|
'height': int(format['height']),
|
||||||
})
|
})
|
||||||
formats = sorted(formats, key=lambda f: (f['height'], f['width']))
|
|
||||||
|
self._sort_formats(formats)
|
||||||
|
|
||||||
playlist.append({
|
playlist.append({
|
||||||
'_type': 'video',
|
'_type': 'video',
|
||||||
|
Loading…
Reference in New Issue
Block a user