Pre-queue script output
Posted: March 14th, 2011, 5:14 pm
I'm writing pre-queue script in python to clear up disk space before downloading. I'm outputting to the console (using the print keyword) like I would for a post-processing script. Will I be able to see the output of the pre-queue script in the download history or should I be outputting to a log file instead?
Also, exit codes...
"If the script has an exit code other than 0, it's assumed the script failed and the NZB will be accepted.
Exit code 0 will make SABnzbd inspect the returned output."
I basically need to tell SABnzbd to either go ahead and process the NZB or don't. 0 to go ahead, -1 to stop?
Thanks for adding this feature by the way, it's just what I needed!
Also, exit codes...
"If the script has an exit code other than 0, it's assumed the script failed and the NZB will be accepted.
Exit code 0 will make SABnzbd inspect the returned output."
I basically need to tell SABnzbd to either go ahead and process the NZB or don't. 0 to go ahead, -1 to stop?
Thanks for adding this feature by the way, it's just what I needed!