quote ffmpeg in which call. fix 102

This commit is contained in:
Clinton Hall 2013-03-30 23:32:25 -07:00
parent 2cdc1b53a5
commit 965fa74c71

View file

@ -15,9 +15,9 @@ def Transcode_directory(dirName):
Logger.info("Cannot transcode files in folder %s", dirName) Logger.info("Cannot transcode files in folder %s", dirName)
return 1 # failure return 1 # failure
else: else:
if call(['which', ffmpeg]): if call(['which', 'ffmpeg']):
res = call([os.path.join(os.path.dirname(sys.argv[0]),'getffmpeg.sh')]) 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.error("Failed to install ffmpeg. Please install manually")
Logger.info("Cannot transcode files in folder %s", dirName) Logger.info("Cannot transcode files in folder %s", dirName)
return 1 # failure return 1 # failure