only set failed if we can verify corrupt. only try install if make exists.

This commit is contained in:
clinton-hall 2014-04-21 21:05:21 +09:30
parent eec3134bdb
commit e24dcade19
2 changed files with 2 additions and 2 deletions

View file

@ -284,7 +284,7 @@ def initialize(section=None):
if not (FFMPEG or FFPROBE): if not (FFMPEG or FFPROBE):
# Auto-install FFMPEG and FFPROBE # Auto-install FFMPEG and FFPROBE
if transcoder.install_ffmpeg(): if subprocess.Popen(['which', 'make'], stdout=subprocess.PIPE).communicate()[0].strip() and transcoder.install_ffmpeg():
FFMPEG = subprocess.Popen(['which', 'ffmpeg'], stdout=subprocess.PIPE).communicate()[0].strip() FFMPEG = subprocess.Popen(['which', 'ffmpeg'], stdout=subprocess.PIPE).communicate()[0].strip()
FFPROBE = subprocess.Popen(['which', 'ffprobe'], stdout=subprocess.PIPE).communicate()[0].strip() FFPROBE = subprocess.Popen(['which', 'ffprobe'], stdout=subprocess.PIPE).communicate()[0].strip()
else: else:

View file

@ -20,7 +20,7 @@ def isVideoGood(videofile):
if not nzbtomedia.FFPROBE: if not nzbtomedia.FFPROBE:
logger.error("Cannot detect corrupt video files!, set your ffmpeg_path in your autoProcessMedia.cfg ...", 'TRANSCODER') logger.error("Cannot detect corrupt video files!, set your ffmpeg_path in your autoProcessMedia.cfg ...", 'TRANSCODER')
return False return True
command = [nzbtomedia.FFPROBE, videofile] command = [nzbtomedia.FFPROBE, videofile]
try: try: