From a99ad2cf81442af95cc909f306d50817b48e1103 Mon Sep 17 00:00:00 2001 From: echel0n Date: Sat, 19 Apr 2014 17:58:42 -0700 Subject: [PATCH] Added in code to stop displaying results back from location check of ffmpeg and ffprobe --- nzbtomedia/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nzbtomedia/__init__.py b/nzbtomedia/__init__.py index 6e4ad978..9c7d1597 100644 --- a/nzbtomedia/__init__.py +++ b/nzbtomedia/__init__.py @@ -274,7 +274,8 @@ def initialize(section=None): FFMPEG = 'ffmpeg' FFPROBE = 'ffprobe' - if TRANSCODE and subprocess.call(['which', 'ffmpeg']) != 0 or subprocess.call(['which', 'ffprobe']) != 0: + if TRANSCODE and subprocess.call(['which', 'ffmpeg'], stdout=bitbucket, stderr=bitbucket) != 0 \ + or subprocess.call(['which', 'ffprobe'], stdout=bitbucket, stderr=bitbucket) != 0: res = subprocess.call([os.path.join(PROGRAM_DIR, 'getffmpeg.sh')], stdout=bitbucket, stderr=bitbucket) if res: # did not install or ffmpeg still not found. logger.error("Failed to install ffmpeg. Please install manually")