From b3d143db29052bf50445dd168278c711ab26e0f2 Mon Sep 17 00:00:00 2001 From: michael Date: Sat, 21 Feb 2015 16:55:26 -0500 Subject: [PATCH] inform nzbget of success --- NZBGetPostProcess.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NZBGetPostProcess.py b/NZBGetPostProcess.py index 25ef43d8..9c4ebb74 100644 --- a/NZBGetPostProcess.py +++ b/NZBGetPostProcess.py @@ -143,13 +143,14 @@ print "[WARNING] File conversion failed!" #DEBUG#print "%d of %d files converted", (converted, attempted) - # Couc if (category.lower() == cateories[0]): #DEBUG#print "Sickbeard Processing Activated" autoProcessTV.processEpisode(path, settings, nzb) + sys.exit(POSTPROCESS_SUCCESS) elif (category.lower() == cateories[1]): #DEBUG#print "CouchPotato Processing Activated" autoProcessMovie.process(path, settings, nzb, status) + sys.exit(POSTPROCESS_SUCCESS) elif (category.lower() == cateories[2]): #DEBUG#print "Sonarr Processing Activated" #Example:curl http://localhost:8989/api/command -X POST -d '{"name": "downloadedepisodesscan"}' --header "X-Api-Key:XXXXXXXXXXX"