Page 1 of 1

Download failed

Posted: March 29th, 2014, 5:15 am
by ugokanain
How can I indicate that a download failed. I tried exit 1 at the end of the script, but still completes the dl as good.

Been getting too many posts that are spam, and would like to set these as failed when the file isn't a movie. This should make CP grab another release (hopefully).

Re: Download failed

Posted: March 29th, 2014, 11:33 am
by shypike
Currently a non zero exit code has no influence on SABnzbd status.
This will change in a future release.

Re: Download failed

Posted: March 29th, 2014, 2:44 pm
by ugokanain
So the only option is to move the folder? Would this cause sab to consider the post as failed?

Re: Download failed

Posted: March 29th, 2014, 4:19 pm
by shypike
Well, your script can do as it pleases,
it won't change anything for SABnzbd.
The script is about the last step of post-processing,
except cleanup and email.

Re: Download failed

Posted: March 30th, 2014, 3:51 am
by ugokanain
Can I suggest adding your last comment to http://wiki.sabnzbd.org/user-scripts

Thanks for the explanation

Re: Download failed

Posted: March 31st, 2014, 5:14 am
by shypike
Done.

Re: Download failed

Posted: April 25th, 2015, 9:05 am
by shypike
Release 0.8.0 will have the option of failing the job when the script returns non-zero.

Re: Download failed

Posted: April 25th, 2015, 11:03 am
by ALbino
shypike wrote:Release 0.8.0 will have the option of failing the job when the script returns non-zero.
This is a good idea. Thanks for adding it.

Re: Download failed

Posted: April 25th, 2015, 12:09 pm
by ugokanain
shypike wrote:Release 0.8.0 will have the option of failing the job when the script returns non-zero.
Thanks