aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dlc/extractor/common.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2021-02-04 19:41:51 +0530
committerpukkandan <pukkandan@gmail.com>2021-02-04 19:42:14 +0530
commitc10d0213fc3811471950f563c651f0b1ee588c85 (patch)
treeae6532b418d28724203d262dc4f9cd3eda5fadaf /youtube_dlc/extractor/common.py
parent2181983a0c97c6fd3bb681c86d64699051061c1c (diff)
downloadhypervideo-pre-c10d0213fc3811471950f563c651f0b1ee588c85.tar.lz
hypervideo-pre-c10d0213fc3811471950f563c651f0b1ee588c85.tar.xz
hypervideo-pre-c10d0213fc3811471950f563c651f0b1ee588c85.zip
[FormatSort] fix bug where `quality` had more priority than `hasvid`
Diffstat (limited to 'youtube_dlc/extractor/common.py')
-rw-r--r--youtube_dlc/extractor/common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dlc/extractor/common.py b/youtube_dlc/extractor/common.py
index 49d99bb55..b9c11c450 100644
--- a/youtube_dlc/extractor/common.py
+++ b/youtube_dlc/extractor/common.py
@@ -1366,9 +1366,9 @@ class InfoExtractor(object):
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,