From 0f1b47714d42c4a1cb9bcb3d239c5fa054a601ca Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Wed, 20 Aug 2014 12:32:30 +0930 Subject: [PATCH] don't check video when disabled. --- nzbtomedia/transcoder/transcoder.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nzbtomedia/transcoder/transcoder.py b/nzbtomedia/transcoder/transcoder.py index 65c593ac..b10a6bb5 100644 --- a/nzbtomedia/transcoder/transcoder.py +++ b/nzbtomedia/transcoder/transcoder.py @@ -28,11 +28,11 @@ def isVideoGood(videofile, status): if not (len(vidStreams) > 0 and len(audStreams) > 0): disable = True logger.info("DISABLED: ffprobe failed to analyse streams from test file. Stopping corruption check.", 'TRANSCODER') - if disable: - if status: # if the download was "failed", assume bad. If it was successful, assume good. - return False - else: - return True + if disable: + if status: # if the download was "failed", assume bad. If it was successful, assume good. + return False + else: + return True logger.info('Checking [%s] for corruption, please stand by ...' % (fileNameExt), 'TRANSCODER') video_details, result = getVideoDetails(videofile)