mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 10:36:52 -07:00
Added in code to stop displaying results back from location check of ffmpeg and ffprobe
This commit is contained in:
parent
8434a58df0
commit
a99ad2cf81
1 changed files with 2 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue