]> jfr.im git - yt-dlp.git/commitdiff
[FormatSort] fix bug where `quality` had more priority than `hasvid`
authorpukkandan <redacted>
Thu, 4 Feb 2021 14:11:51 +0000 (19:41 +0530)
committerpukkandan <redacted>
Thu, 4 Feb 2021 14:12:14 +0000 (19:42 +0530)
youtube_dlc/extractor/common.py

index 49d99bb5575a156b63c50044fe91217c461efacb..b9c11c450f0f97fe54592a294593c479b903919b 100644 (file)
@@ -1366,9 +1366,9 @@ def _form_hidden_inputs(self, form_id, html):
     class FormatSort:
         regex = r' *((?P<reverse>\+)?(?P<field>[a-zA-Z0-9_]+)((?P<seperator>[~:])(?P<limit>.*?))?)? *$'
 
-        default = ('hidden', 'has_video', 'extractor', 'lang', 'quality',
+        default = ('hidden', 'hasvid', 'ie_pref', 'lang', 'quality',
                    'res', 'fps', 'codec:vp9', 'size', 'br', 'asr',
-                   'proto', 'ext', 'has_audio', 'source', 'format_id')
+                   'proto', 'ext', 'has_audio', 'source', 'format_id')  # These must not be aliases
 
         settings = {
             'vcodec': {'type': 'ordered', 'regex': True,