mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
[appletrailers] Use centralized format selection
This commit is contained in:
parent
539179f45b
commit
7b8af56340
1 changed files with 2 additions and 1 deletions
|
@ -110,7 +110,8 @@ def _clean_json(m):
|
|||
'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',
|
||||
|
|
Loading…
Reference in a new issue