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

Discuss newly added features or request new features.
Post Reply
barabbas
Posts: 27
Joined: 04 Dec 2014, 17:35

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

Post by barabbas » 07 Dec 2017, 11:07

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.

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

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

Post by hugbug » 08 Dec 2017, 11:03

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.

barabbas
Posts: 27
Joined: 04 Dec 2014, 17:35

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

Post by barabbas » 11 Dec 2017, 15:52

Right, I was sure I had used that. Will verify again. Thanks for the reply!

Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests