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).
Download failed
Re: Download failed
Currently a non zero exit code has no influence on SABnzbd status.
This will change in a future release.
This will change in a future release.
Re: Download failed
So the only option is to move the folder? Would this cause sab to consider the post as failed?
Re: Download failed
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.
it won't change anything for SABnzbd.
The script is about the last step of post-processing,
except cleanup and email.
Re: Download failed
Can I suggest adding your last comment to http://wiki.sabnzbd.org/user-scripts
Thanks for the explanation
Thanks for the explanation
Re: Download failed
Done.
Re: Download failed
Release 0.8.0 will have the option of failing the job when the script returns non-zero.
Re: Download failed
This is a good idea. Thanks for adding it.shypike wrote:Release 0.8.0 will have the option of failing the job when the script returns non-zero.
Re: Download failed
Thanksshypike wrote:Release 0.8.0 will have the option of failing the job when the script returns non-zero.