aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dlc/extractor/common.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2020-11-05 21:05:36 +0530
committerpukkandan <pukkandan@gmail.com>2020-12-13 20:05:03 +0530
commit909d24dd6dc835e1291596dda17f962a6ec34875 (patch)
treea4e4ebd418cacffe022577fcec471ab0b34afafc /youtube_dlc/extractor/common.py
parenteb8a44336c3fbecefa9540794449adfd1b53d32b (diff)
downloadhypervideo-pre-909d24dd6dc835e1291596dda17f962a6ec34875.tar.lz
hypervideo-pre-909d24dd6dc835e1291596dda17f962a6ec34875.tar.xz
hypervideo-pre-909d24dd6dc835e1291596dda17f962a6ec34875.zip
Better Format Selection
* Added options: --video-multistreams, --no-video-multistreams, --audio-multistreams, --no-audio-multistreams * New format selectors: best*, worst*, bestvideo*, bestaudio*, worstvideo*, worstaudio* * Added b,w,v,a as alias for best, worst, video and audio respectively in format selection * Changed video format sorting to show video only files and video+audio files together.
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 2d8d74793..1ffe37bde 100644
--- a/youtube_dlc/extractor/common.py
+++ b/youtube_dlc/extractor/common.py
@@ -1358,7 +1358,7 @@ class InfoExtractor(object):
class FormatSort:
regex = r' *((?P<reverse>\+)?(?P<field>[a-zA-Z0-9_]+)((?P<seperator>[~:])(?P<limit>.*?))?)? *$'
- default = ('hidden', 'has_video', 'has_audio', 'extractor', 'lang', 'quality',
+ default = ('hidden', 'has_video', 'extractor', 'lang', 'quality',
'tbr', 'filesize', 'vbr', 'height', 'width', 'protocol', 'vext',
'abr', 'aext', 'fps', 'filesize_approx', 'source_preference', 'format_id')
@@ -1378,7 +1378,7 @@ class InfoExtractor(object):
'hidden': {'visible': False, 'forced': True, 'type': 'extractor', 'max': -1000},
'extractor_preference': {'priority': True, 'type': 'extractor'},
'has_video': {'priority': True, 'field': 'vcodec', 'type': 'boolean', 'not_in_list': ('none',)},
- 'has_audio': {'priority': True, 'field': 'acodec', 'type': 'boolean', 'not_in_list': ('none',)},
+ 'has_audio': {'priority': False, 'field': 'acodec', 'type': 'boolean', 'not_in_list': ('none',)},
'language_preference': {'priority': True, 'convert': 'ignore'},
'quality': {'priority': True, 'convert': 'float_none'},
'filesize': {'convert': 'bytes'},