don't check video when disabled.

This commit is contained in:
clinton-hall 2014-08-20 12:32:30 +09:30
parent 2a178a80aa
commit 0f1b47714d

View file

@ -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)