]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
Log a better error message if ffprobe or avconv are not found (related #1134)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Wed, 31 Jul 2013 19:22:08 +0000 (21:22 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Wed, 31 Jul 2013 19:22:08 +0000 (21:22 +0200)
youtube_dl/PostProcessor.py

index 4f0a165ba6384dee290077cc418791daabd9187b..fddf58606015b92cc21a9f89818c90852c365e83 100644 (file)
@@ -100,7 +100,8 @@ class FFmpegExtractAudioPP(FFmpegPostProcessor):
         self._nopostoverwrites = nopostoverwrites
 
     def get_audio_codec(self, path):
-        if not self._exes['ffprobe'] and not self._exes['avprobe']: return None
+        if not self._exes['ffprobe'] and not self._exes['avprobe']:
+            raise PostProcessingError(u'ffprobe or avprobe not found. Please install one.')
         try:
             cmd = [self._exes['avprobe'] or self._exes['ffprobe'], '-show_streams', encodeFilename(self._ffmpeg_filename_argument(path))]
             handle = subprocess.Popen(cmd, stderr=compat_subprocess_get_DEVNULL(), stdout=subprocess.PIPE)