Detects ffmpeg and ffprobe at startup but will alert you to if there missing only when needed to be used so that we don't get a stupid error message at startup for no reason.

This commit is contained in:
echel0n 2014-04-19 17:55:44 -07:00
commit 8434a58df0
5 changed files with 26 additions and 23 deletions

View file

@ -292,7 +292,7 @@ def process(nzbDir, inputName=None, status=0, clientAgent='manual', download_id=
if section:
# Check video files for corruption
for video in listMediaFiles(nzbDir):
if nzbtomedia.FFPROBE and not Transcoder().isVideoGood(video):
if not Transcoder().isVideoGood(video):
status = 1
logger.info("Sending %s to %s for post-processing ..." % (inputName, str(section).upper()))