Page 1 of 1

Feature request / search: Post-processing script return code WARNING

Posted: 07 Dec 2017, 11:07
by barabbas
Hey,

there may already be a way to achieve this but I haven't found exactly what I want in the documentation.

I have a script that informs a separate tool about finished downloads. If there's any error while calling the tool I want to note this in some way in nzbget but I don't want the download / PP status to be considered failed. But I can either say the status is SUCCESS (which is not true) or FAILURE (will for example cause automation tools to retrieve another NZB even though the download / PP was fine) or NONE.

So, would that be an option?

Thanks for your work.

Re: Feature request / search: Post-processing script return code WARNING

Posted: 08 Dec 2017, 11:03
by hugbug
Status "FAILURE" is what you want to use.
Failure for downloading and Failure for post-processing are different things and result in different statuses. A failure of pp-script produces status "WARNING/SCRIPT" which an external app should treat as WARNING.

See https://nzbget.net/api/history for details.

Re: Feature request / search: Post-processing script return code WARNING

Posted: 11 Dec 2017, 15:52
by barabbas
Right, I was sure I had used that. Will verify again. Thanks for the reply!