aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dlc/extractor/common.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2021-01-04 22:10:47 +0530
committerpukkandan <pukkandan@gmail.com>2021-01-05 02:36:09 +0530
commit91ebc64068d2957400dbfaadff23e995392b3963 (patch)
treeebaf13430c45fdef23815fed611d393ae1679c8c /youtube_dlc/extractor/common.py
parent50865ca803a130308c064c2de5c7140754382993 (diff)
downloadhypervideo-pre-91ebc64068d2957400dbfaadff23e995392b3963.tar.lz
hypervideo-pre-91ebc64068d2957400dbfaadff23e995392b3963.tar.xz
hypervideo-pre-91ebc64068d2957400dbfaadff23e995392b3963.zip
Change defaults
* Enabled --ignore by default * Disabled --video-multistreams and --audio-multistreams by default * Changed default format selection to 'bv*+ba/b' when --audio-multistreams is disabled * Changed default format sort order to 'res,fps,codec,size,br,asr,proto,ext,has_audio,source,format_id' * Changed default output template to '%(title)s [%(id)s].%(ext)s' * Enabled `--list-formats-as-table` by default
Diffstat (limited to 'youtube_dlc/extractor/common.py')
-rw-r--r--youtube_dlc/extractor/common.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/youtube_dlc/extractor/common.py b/youtube_dlc/extractor/common.py
index 9dfa9a60d..3b6e1c8e5 100644
--- a/youtube_dlc/extractor/common.py
+++ b/youtube_dlc/extractor/common.py
@@ -1367,8 +1367,8 @@ class InfoExtractor(object):
regex = r' *((?P<reverse>\+)?(?P<field>[a-zA-Z0-9_]+)((?P<seperator>[~:])(?P<limit>.*?))?)? *$'
default = ('hidden', 'has_video', 'extractor', 'lang', 'quality',
- 'tbr', 'filesize', 'vbr', 'height', 'width', 'protocol', 'vext',
- 'abr', 'aext', 'fps', 'filesize_approx', 'source_preference', 'format_id')
+ 'res', 'fps', 'codec', 'size', 'br', 'asr',
+ 'proto', 'ext', 'has_audio', 'source', 'format_id')
settings = {
'vcodec': {'type': 'ordered', 'regex': True,
@@ -1378,7 +1378,7 @@ class InfoExtractor(object):
'protocol': {'type': 'ordered', 'regex': True,
'order': ['(ht|f)tps', '(ht|f)tp$', 'm3u8.+', 'm3u8', '.*dash', '', 'mms|rtsp', 'none', 'f4']},
'vext': {'type': 'ordered', 'field': 'video_ext',
- 'order': ('mp4', 'flv', 'webm', '', 'none'), # Why is flv prefered over webm???
+ 'order': ('mp4', 'webm', 'flv', '', 'none'),
'order_free': ('webm', 'mp4', 'flv', '', 'none')},
'aext': {'type': 'ordered', 'field': 'audio_ext',
'order': ('m4a', 'aac', 'mp3', 'ogg', 'opus', 'webm', '', 'none'),
@@ -1386,7 +1386,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': False, 'field': 'acodec', 'type': 'boolean', 'not_in_list': ('none',)},
+ 'has_audio': {'field': 'acodec', 'type': 'boolean', 'not_in_list': ('none',)},
'language_preference': {'priority': True, 'convert': 'ignore'},
'quality': {'priority': True, 'convert': 'float_none'},
'filesize': {'convert': 'bytes'},