mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 18:47:09 -07:00
Corrected a conditional check mistake for testing corrupt videos
This commit is contained in:
parent
4a7a115328
commit
0df6c1c4fe
2 changed files with 8 additions and 12 deletions
|
@ -53,7 +53,7 @@ def processTorrent(inputDirectory, inputName, inputCategory, inputHash, inputID,
|
|||
status = 0
|
||||
# Check video files for corruption
|
||||
for video in listMediaFiles(inputDirectory):
|
||||
if not nzbtomedia.FFPROBE and Transcoder().isVideoGood(video):
|
||||
if nzbtomedia.FFPROBE and not Transcoder().isVideoGood(video):
|
||||
status = 1
|
||||
|
||||
logger.info("Calling autoProcessTV to post-process: %s",inputName)
|
||||
|
@ -193,21 +193,17 @@ def processTorrent(inputDirectory, inputName, inputCategory, inputHash, inputID,
|
|||
return status
|
||||
|
||||
result = 0
|
||||
if nzbtomedia.CFG['CouchPotato'][inputCategory]:
|
||||
# Check video files for corruption
|
||||
for video in listMediaFiles(inputDirectory):
|
||||
if not nzbtomedia.FFPROBE and Transcoder().isVideoGood(video):
|
||||
status = 1
|
||||
|
||||
# Check video files for corruption
|
||||
for video in listMediaFiles(inputDirectory):
|
||||
if nzbtomedia.FFPROBE and not Transcoder().isVideoGood(video):
|
||||
status = 1
|
||||
|
||||
if nzbtomedia.CFG['CouchPotato'][inputCategory]:
|
||||
logger.info("Calling CouchPotato:" + inputCategory + " to post-process: %s" % (inputName))
|
||||
download_id = inputHash
|
||||
result = autoProcessMovie().process(outputDestination, inputName, status, clientAgent, download_id, inputCategory)
|
||||
elif nzbtomedia.CFG['SickBeard'][inputCategory]:
|
||||
# Check video files for corruption
|
||||
for video in listMediaFiles(inputDirectory):
|
||||
if not nzbtomedia.FFPROBE and Transcoder().isVideoGood(video):
|
||||
status = 1
|
||||
|
||||
logger.info("Calling Sick-Beard:" + inputCategory + " to post-process: %s" % (inputName))
|
||||
result = autoProcessTV().processEpisode(outputDestination, inputName, status, clientAgent, inputCategory)
|
||||
elif nzbtomedia.CFG['NzbDrone'][inputCategory]:
|
||||
|
|
|
@ -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 not nzbtomedia.FFPROBE and Transcoder().isVideoGood(video):
|
||||
if nzbtomedia.FFPROBE and not Transcoder().isVideoGood(video):
|
||||
status = 1
|
||||
|
||||
logger.info("Sending %s to %s for post-processing ..." % (inputName, str(section).upper()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue