From e4beae703de75113b98c4ff78065dc6edb3b0bf4 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Mon, 15 Mar 2021 23:55:37 +0530 Subject: [PATCH] [formatSort] Fix `quality` being ignored Closes #172 --- yt_dlp/extractor/common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index 65fcfcbf5..1b6e926e9 100644 --- a/yt_dlp/extractor/common.py +++ b/yt_dlp/extractor/common.py @@ -1417,8 +1417,8 @@ class InfoExtractor(object): 'ie_pref': {'priority': True, 'type': 'extractor'}, 'hasvid': {'priority': True, 'field': 'vcodec', 'type': 'boolean', 'not_in_list': ('none',)}, 'hasaud': {'field': 'acodec', 'type': 'boolean', 'not_in_list': ('none',)}, - 'lang': {'priority': True, 'convert': 'ignore', 'type': 'extractor', 'field': 'language_preference'}, - 'quality': {'convert': 'float_none', 'type': 'extractor'}, + 'lang': {'priority': True, 'convert': 'ignore', 'field': 'language_preference'}, + 'quality': {'convert': 'float_none'}, 'filesize': {'convert': 'bytes'}, 'fs_approx': {'convert': 'bytes', 'field': 'filesize_approx'}, 'id': {'convert': 'string', 'field': 'format_id'}, @@ -1429,7 +1429,7 @@ class InfoExtractor(object): 'vbr': {'convert': 'float_none'}, 'abr': {'convert': 'float_none'}, 'asr': {'convert': 'float_none'}, - 'source': {'convert': 'ignore', 'type': 'extractor', 'field': 'source_preference'}, + 'source': {'convert': 'ignore', 'field': 'source_preference'}, 'codec': {'type': 'combined', 'field': ('vcodec', 'acodec')}, 'br': {'type': 'combined', 'field': ('tbr', 'vbr', 'abr'), 'same_limit': True},