SABnzbd not Respecting "Default" Post Processing Task

Report & discuss bugs found in 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
markus101
Release Testers
Release Testers
Posts: 406
Joined: August 13th, 2008, 2:51 am

SABnzbd not Respecting "Default" Post Processing Task

Post by markus101 »

Hello,

SInce upgrading to 0.6.0 final I'm having issues with the Post Processing task that runs after download (Download, +Repair, +Unpack, +Delete). My default PP value for downloads is +Delete, for the TV category it is set to Default (should inherit +Delete), I also tested setting TV to +Delete as well, with no change.

My application sends the command to SABnzbd without &pp= (which should default t+Delete based on my settings and previous experience), since I upgrade to 0.6.0 Final from 0.6.0 Beta2 this now defaults to Download only (forcing me to manually extract the downloads) added with my application.

I did some testing by adding with &pp= set to 0, 1, 2 & 3, when set to 0 it defaults to Download, when set to 1, 2 or 3, SABnzbd respects that value and its shows properly in the UI.

Is this an expected change for 0.6.0 Final?

If any further information is required, please let me know.
Thanks in Advance.
-Markus
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: SABnzbd not Respecting "Default" Post Processing Task

Post by shypike »

markus101 wrote: Is this an expected change for 0.6.0 Final?
No, I'll look into it.
BTW: which API call do you use exactly?
Last edited by shypike on May 9th, 2011, 4:38 pm, edited 1 time in total.
markus101
Release Testers
Release Testers
Posts: 406
Joined: August 13th, 2008, 2:51 am

Re: SABnzbd not Respecting "Default" Post Processing Task

Post by markus101 »

AddUrl with the link to the nzb, a name, priority and category.
http://wiki.sabnzbd.org/api#toc28

I've temporarily corrected the issue by forcing it to set pp=3 when I send the command to SAB.

Cheers,

Markus
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: SABnzbd not Respecting "Default" Post Processing Task

Post by shypike »

I cannot reproduce the issue.
Are you sure that you don't have a situation where SABnzbd picks up a category
from either the NZB site (like newzbin or nzbmatrix) or from groups.
If that category has a specific PP value, then that one will be used.
How is your default category set?
markus101
Release Testers
Release Testers
Posts: 406
Joined: August 13th, 2008, 2:51 am

Re: SABnzbd not Respecting "Default" Post Processing Task

Post by markus101 »

Ahhh, so the issue is when I have my pre-queue script running (if I disable the pre-queue script, I don't see this issue).

My pre-quere script will try to parse the value passed from SABnzbd, is the value is empty (as I see it to be in my logs), then a zero is returned. The issue appears to be with the return from the Pre-Queue script not handling the zero properly and using the default action.

Here is a censored output of my pre-queue script's log file:

Code: Select all

[06-53-26] Input:
[06-53-26] Show Name - 1x10 - Episode Name
[06-53-26] 
[06-53-26] TV
[06-53-26] 
[06-53-26] 1
[06-53-26] 1573498777
[06-53-26] alt.binaries.hdtv alt.binaries.tv
[06-53-26] Show Name
[06-53-26] 1
[06-53-26] 10
[06-53-26] Episode Name

[06-53-26] Output:
[06-53-26] 1
[06-53-26] Show Name - 1x10 - Episode Name
[06-53-26] 0
[06-53-26] TV
[06-53-26] 
[06-53-26] 1
[06-53-26] 
I'm receiving a blank PP#, so I return a zero.

Sorry for the confusion, I forgot about the Pre-Queue Script momentarily.

-Markus
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: SABnzbd not Respecting "Default" Post Processing Task

Post by shypike »

0 means download-only.
-1 or an empty line is default.
markus101
Release Testers
Release Testers
Posts: 406
Joined: August 13th, 2008, 2:51 am

Re: SABnzbd not Respecting "Default" Post Processing Task

Post by markus101 »

Well that would be it. Weird that I haven't come across this before.

Thanks for the help and sorry about the bother.

-Markus
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
Post Reply