log warning, prevent crash, and exit gracefully if no manual directories defined.

This commit is contained in:
clinton-hall 2014-04-04 09:39:26 +10:30
commit 5165ee31ba
3 changed files with 14 additions and 11 deletions

View file

@ -414,7 +414,7 @@ if inputCategory in cpsCategory:
Logger.info("MAIN: Calling CouchPotatoServer to post-process: %s", inputName)
result = autoProcessMovie.process(nzbDir, inputName, status, clientAgent, download_id, inputCategory)
elif inputCategory in sbCategory:
result = 0
result = 1
if isinstance(nzbDir, list):
for dirName in nzbDir:
Logger.info("MAIN: Calling Sick-Beard to post-process: %s", inputName)