From 965fa74c7105d47cc3d9ddeb8ca71b423ff17dca Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Sat, 30 Mar 2013 23:32:25 -0700 Subject: [PATCH] quote ffmpeg in which call. fix 102 --- autoProcess/Transcoder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoProcess/Transcoder.py b/autoProcess/Transcoder.py index 304d1623..20307816 100644 --- a/autoProcess/Transcoder.py +++ b/autoProcess/Transcoder.py @@ -15,9 +15,9 @@ def Transcode_directory(dirName): Logger.info("Cannot transcode files in folder %s", dirName) return 1 # failure else: - if call(['which', ffmpeg]): + if call(['which', 'ffmpeg']): res = call([os.path.join(os.path.dirname(sys.argv[0]),'getffmpeg.sh')]) - if res or call(['which', ffmpeg]): # did not install or ffmpeg still not found. + if res or call(['which', 'ffmpeg']): # did not install or ffmpeg still not found. Logger.error("Failed to install ffmpeg. Please install manually") Logger.info("Cannot transcode files in folder %s", dirName) return 1 # failure