improve fork handling. #199

This commit is contained in:
clinton-hall 2013-11-08 11:55:12 +10:30
commit 12cce95d89
3 changed files with 31 additions and 44 deletions

View file

@ -36,8 +36,8 @@ def main(inputDirectory, inputName, inputCategory, inputHash, inputID):
extractionSuccess = False
Logger.debug("MAIN: Received Directory: %s | Name: %s | Category: %s", inputDirectory, inputName, inputCategory)
if sbFork in ["TPB", "TPB-failed"] and inputCategory == sbCategory:
Logger.info("MAIN: Calling Sick-Beard to post-process: %s", inputName)
if inputCategory == sbCategory and sbFork in SICKBEARD_TORRENT:
Logger.info("MAIN: Calling SickBeard's %s branch to post-process: %s",sbFork ,inputName)
result = autoProcessTV.processEpisode(inputDirectory, inputName, int(0))
if result == 1:
Logger.info("MAIN: A problem was reported in the autoProcess* script. If torrent was pasued we will resume seeding")