diff options
author | Barbu Paul - Gheorghe <barbu.paul.gheorghe@gmail.com> | 2012-12-23 19:36:48 +0200 |
---|---|---|
committer | Barbu Paul - Gheorghe <barbu.paul.gheorghe@gmail.com> | 2012-12-23 19:36:48 +0200 |
commit | f0648fc18c91fde0c2db2e52c1cf78fe6bf3bbc4 (patch) | |
tree | 1f58f5f58fd9c4668f0a087d913283124b3f2320 /youtube_dl | |
parent | a7c0f8602e91cc96962c7eade10860b61afc3728 (diff) |
added the --no-post-overwrites argument
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index c7a0bb959..d044797f0 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -343,6 +343,8 @@ def parseOpts(): help='ffmpeg/avconv audio quality specification, insert a value between 0 (better) and 9 (worse) for VBR or a specific bitrate like 128K (default 5)') postproc.add_option('-k', '--keep-video', action='store_true', dest='keepvideo', default=False, help='keeps the video file on disk after the post-processing; the video is erased by default') + postproc.add_option('--no-post-overwrites', action='store_true', dest='nopostoverwrites', default=False, + help='do not overwrite post-processed files; the post-processed files are overwritten by default') parser.add_option_group(general) @@ -571,7 +573,7 @@ def _real_main(): # PostProcessors if opts.extractaudio: - fd.add_post_processor(FFmpegExtractAudioPP(preferredcodec=opts.audioformat, preferredquality=opts.audioquality, keepvideo=opts.keepvideo)) + fd.add_post_processor(FFmpegExtractAudioPP(preferredcodec=opts.audioformat, preferredquality=opts.audioquality, keepvideo=opts.keepvideo, nopostoverwrites=opts.nopostoverwrites)) # Update version if opts.update_self: |