mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
don't check video when disabled.
This commit is contained in:
parent
2a178a80aa
commit
0f1b47714d
1 changed files with 5 additions and 5 deletions
|
@ -28,11 +28,11 @@ def isVideoGood(videofile, status):
|
||||||
if not (len(vidStreams) > 0 and len(audStreams) > 0):
|
if not (len(vidStreams) > 0 and len(audStreams) > 0):
|
||||||
disable = True
|
disable = True
|
||||||
logger.info("DISABLED: ffprobe failed to analyse streams from test file. Stopping corruption check.", 'TRANSCODER')
|
logger.info("DISABLED: ffprobe failed to analyse streams from test file. Stopping corruption check.", 'TRANSCODER')
|
||||||
if disable:
|
if disable:
|
||||||
if status: # if the download was "failed", assume bad. If it was successful, assume good.
|
if status: # if the download was "failed", assume bad. If it was successful, assume good.
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
logger.info('Checking [%s] for corruption, please stand by ...' % (fileNameExt), 'TRANSCODER')
|
logger.info('Checking [%s] for corruption, please stand by ...' % (fileNameExt), 'TRANSCODER')
|
||||||
video_details, result = getVideoDetails(videofile)
|
video_details, result = getVideoDetails(videofile)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue