mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
parent
99c4961f6a
commit
96c4a9fa40
2 changed files with 4 additions and 1 deletions
|
@ -165,7 +165,7 @@ def processEpisode(dirName, nzbName=None, failed=False):
|
||||||
Logger.info("The download succeeded. Sending process request to SickBeard")
|
Logger.info("The download succeeded. Sending process request to SickBeard")
|
||||||
else:
|
else:
|
||||||
Logger.info("The download failed. Nothing to process")
|
Logger.info("The download failed. Nothing to process")
|
||||||
if delete_failed and not dirName in ['sys.argv[0]','/','']:
|
if delete_failed and os.path.isdir(dirName) and not dirName in ['sys.argv[0]','/','']:
|
||||||
delete(dirName)
|
delete(dirName)
|
||||||
return 0 # Success (as far as this script is concerned)
|
return 0 # Success (as far as this script is concerned)
|
||||||
|
|
||||||
|
|
|
@ -412,6 +412,9 @@ elif inputCategory == mlCategory:
|
||||||
elif inputCategory == gzCategory:
|
elif inputCategory == gzCategory:
|
||||||
Logger.info("MAIN: Calling Gamez to post-process: %s", inputName)
|
Logger.info("MAIN: Calling Gamez to post-process: %s", inputName)
|
||||||
result = autoProcessGames.process(nzbDir, inputName, status)
|
result = autoProcessGames.process(nzbDir, inputName, status)
|
||||||
|
else:
|
||||||
|
Logger.warning("MAIN: The download category %s does not match any category defines in autoProcessMedia.cfg. Exiting.", inputCategory)
|
||||||
|
sys.exit(POSTPROCESS_ERROR)
|
||||||
|
|
||||||
if result == 0:
|
if result == 0:
|
||||||
Logger.info("MAIN: The autoProcess* script completed successfully.")
|
Logger.info("MAIN: The autoProcess* script completed successfully.")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue