mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 12:59:36 -07:00
Added in some missing code
This commit is contained in:
parent
b8ebf0cb64
commit
00a5dae4e3
2 changed files with 7 additions and 9 deletions
|
@ -55,7 +55,7 @@ def processTorrent(inputDirectory, inputName, inputCategory, inputHash, inputID,
|
|||
for video in listMediaFiles(inputDirectory):
|
||||
if not nzbtomedia.FFPROBE and Transcoder().isVideoGood(video):
|
||||
status = 1
|
||||
|
||||
|
||||
logger.info("Calling autoProcessTV to post-process: %s",inputName)
|
||||
result = autoProcessTV().processEpisode(inputDirectory, inputName, status, clientAgent=clientAgent, inputCategory=inputCategory)
|
||||
if result != 0:
|
||||
|
|
|
@ -290,21 +290,19 @@ def process(nzbDir, inputName=None, status=0, clientAgent='manual', download_id=
|
|||
# auto-detect section
|
||||
section = nzbtomedia.CFG.findsection(inputCategory)
|
||||
if section:
|
||||
# Check video files for corruption
|
||||
for video in listMediaFiles(nzbDir):
|
||||
if not nzbtomedia.FFPROBE and Transcoder().isVideoGood(video):
|
||||
status = 1
|
||||
|
||||
logger.info("Sending %s to %s for post-processing ..." % (inputName, str(section).upper()))
|
||||
else:
|
||||
logger.error("We could not find a section with containing a download category labeled %s in your autoProcessMedia.cfg, Exiting!" % inputCategory)
|
||||
return -1
|
||||
|
||||
if nzbtomedia.CFG["CouchPotato"][inputCategory]:
|
||||
# Check video files for corruption
|
||||
for video in listMediaFiles(nzbDir):
|
||||
if not nzbtomedia.FFPROBE and Transcoder().isVideoGood(video):
|
||||
status = 1
|
||||
result = autoProcessMovie().process(nzbDir, inputName, status, clientAgent, download_id, inputCategory)
|
||||
elif nzbtomedia.CFG["SickBeard", "NzbDrone"][inputCategory]:
|
||||
# Check video files for corruption
|
||||
for video in listMediaFiles(nzbDir):
|
||||
if not nzbtomedia.FFPROBE and Transcoder().isVideoGood(video):
|
||||
status = 1
|
||||
result = autoProcessTV().processEpisode(nzbDir, inputName, status, clientAgent, inputCategory)
|
||||
elif nzbtomedia.CFG["HeadPhones"][inputCategory]:
|
||||
result = autoProcessMusic().process(nzbDir, inputName, status, clientAgent, inputCategory)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue