diff options
author | pukkandan <pukkandan@gmail.com> | 2020-11-05 21:05:36 +0530 |
---|---|---|
committer | pukkandan <pukkandan@gmail.com> | 2020-12-13 20:05:03 +0530 |
commit | 909d24dd6dc835e1291596dda17f962a6ec34875 (patch) | |
tree | a4e4ebd418cacffe022577fcec471ab0b34afafc /youtube_dlc/options.py | |
parent | eb8a44336c3fbecefa9540794449adfd1b53d32b (diff) |
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/options.py')
-rw-r--r-- | youtube_dlc/options.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/youtube_dlc/options.py b/youtube_dlc/options.py index bbec33678..44eba3e9c 100644 --- a/youtube_dlc/options.py +++ b/youtube_dlc/options.py @@ -416,6 +416,22 @@ def parseOpts(overrideArguments=None): 'Some fields have precedence over the user specified sort order (default), ' 'see "Sorting Formats" for more details')) video_format.add_option( + '--video-multistreams', + action='store_true', dest='allow_multiple_video_streams', default=True, + help='Allow multiple video streams to be merged into a single file (default)') + video_format.add_option( + '--no-video-multistreams', + action='store_false', dest='allow_multiple_video_streams', + help='Only one video stream is downloaded for each output file') + video_format.add_option( + '--audio-multistreams', + action='store_true', dest='allow_multiple_audio_streams', default=True, + help='Allow multiple audio streams to be merged into a single file (default)') + video_format.add_option( + '--no-audio-multistreams', + action='store_false', dest='allow_multiple_audio_streams', + help='Only one audio stream is downloaded for each output file') + video_format.add_option( '--all-formats', action='store_const', dest='format', const='all', help='Download all available video formats') |