Will a failed unpack stop execution of postprocessing script?

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
Shady
Newbie
Newbie
Posts: 24
Joined: June 20th, 2009, 9:00 pm

Will a failed unpack stop execution of postprocessing script?

Post by Shady »

Will failed verify/repair/unpack stop the execution of the postprocessing script?
Also, if not is it possible to turn this off somewhere?
If it is possible, is also possible for the postprocessing script to ask the SABNZBD history api if unpack/repair etc went okay during the time it is executed?

Thanks
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Will a failed unpack stop execution of postprocessing script?

Post by shypike »

The option "Postprocess only verified jobs" in Config->Switches
determines if the script is run.
Even if it's off, your script will get the status parameter to tell the verification result.
See: http://wiki.sabnzbd.org/user-scripts
Shady
Newbie
Newbie
Posts: 24
Joined: June 20th, 2009, 9:00 pm

Re: Will a failed unpack stop execution of postprocessing script?

Post by Shady »

Thanks, awesome feature!
That will help prevent my program from deleting rar's that are not yet unpacked. :)
I hope you don't mind i took a look at the RAR regex from sabnzbd to identify rar files and use it in my program to ensure cleanup of rars will be the same.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Will a failed unpack stop execution of postprocessing script?

Post by shypike »

He man, it's Open Source.
Post Reply