1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2026-02-28 19:29:46 +00:00

[formatsort] Remove unnecessary field_preference from extractors

These were written with the old format sorting in mind and is no longer needed
This commit is contained in:
pukkandan
2021-02-18 23:52:28 +05:30
parent 9ba5705ac0
commit 54f37eeabd
20 changed files with 29 additions and 23 deletions

View File

@@ -80,7 +80,9 @@ class SendtoNewsIE(InfoExtractor):
'format_id': '%s-%d' % (determine_protocol(f), tbr),
'tbr': tbr,
})
self._sort_formats(info_dict['formats'], ('tbr', 'height', 'width', 'format_id'))
# 'tbr' was explicitly set to be prefered over 'height' originally,
# So this is being kept unless someone can confirm this is unnecessary
self._sort_formats(info_dict['formats'], ('tbr', 'res'))
thumbnails = []
if video.get('thumbnailUrl'):