diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2015-01-10 01:59:14 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2015-01-10 01:59:14 +0100 |
commit | 45598f15788568a8432da19544e5bdc390032aca (patch) | |
tree | e0c41e910eb267c6ef254f8d47cc36f32d5663ac /youtube_dl/__init__.py | |
parent | 130239460370870c33f259ed1549878388996d3f (diff) | |
parent | d02115f83727ae0d4f394073235dc97086c64266 (diff) |
Merge remote-tracking branch 'aft90/merge-output-format'
Conflicts:
youtube_dl/YoutubeDL.py
Diffstat (limited to 'youtube_dl/__init__.py')
-rw-r--r-- | youtube_dl/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index 844992d8e..b4ae35a2b 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -166,6 +166,9 @@ def _real_main(argv=None): if opts.recodevideo is not None: if opts.recodevideo not in ['mp4', 'flv', 'webm', 'ogg', 'mkv']: parser.error('invalid video recode format specified') + if opts.merge_output_format is not None and not '+' in opts.format: #if merge format output is used on videos that don't require merging, ignore + opts.merge_output_format = None + if opts.date is not None: date = DateRange.day(opts.date) else: @@ -323,6 +326,7 @@ def _real_main(argv=None): 'encoding': opts.encoding, 'exec_cmd': opts.exec_cmd, 'extract_flat': opts.extract_flat, + 'merge_output_format': opts.merge_output_format, 'postprocessors': postprocessors, } |