[youtube] Prefer height over width over ext preference over tbr when sorting formats (Closes #6018, closes #8001)
This commit is contained in:
parent
86d5fb968e
commit
ad20c8d0fc
@ -1551,7 +1551,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||
if f.get('vcodec') != 'none':
|
||||
f['stretched_ratio'] = ratio
|
||||
|
||||
self._sort_formats(formats)
|
||||
self._sort_formats(
|
||||
formats,
|
||||
criteria_relative_preference=('height', 'width', 'ext_preference', 'tbr'))
|
||||
|
||||
return {
|
||||
'id': video_id,
|
||||
|
Loading…
x
Reference in New Issue
Block a user