]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
apparently the -n option is available only in ffmpeg
authorBarbu Paul - Gheorghe <barbu.paul.gheorghe@gmail.com>
Sun, 23 Dec 2012 18:20:19 +0000 (20:20 +0200)
committerBarbu Paul - Gheorghe <barbu.paul.gheorghe@gmail.com>
Sun, 23 Dec 2012 18:20:19 +0000 (20:20 +0200)
youtube_dl/PostProcessor.py

index e0b071a9c84fe5c688d746900a302046cac6b1a6..6da24f986f855cded32a76a2fc60d3d420c8fdb2 100644 (file)
@@ -108,7 +108,7 @@ class FFmpegExtractAudioPP(PostProcessor):
             acodec_opts = []
         else:
             acodec_opts = ['-acodec', codec]
-        if self._nopostoverwrites:
+        if self._nopostoverwrites and self._exes['ffmpeg']:
             overwrite_opts = '-n'
         else:
             overwrite_opts = '-y'