]> jfr.im git - yt-dlp.git/commitdiff
[formatSort] Fix `quality` being ignored
authorpukkandan <redacted>
Mon, 15 Mar 2021 18:25:37 +0000 (23:55 +0530)
committerpukkandan <redacted>
Mon, 15 Mar 2021 18:25:53 +0000 (23:55 +0530)
Closes #172

yt_dlp/extractor/common.py

index 65fcfcbf59b8a11f7455aaeca60db87ac71548ce..1b6e926e9d96b4ce381ef07ba79b9c441ea33945 100644 (file)
@@ -1417,8 +1417,8 @@ class FormatSort:
             '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 FormatSort:
             '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},