More values for NZBPP variables?

Get help, report and discuss bugs.
Post Reply
Nedle
Posts: 49
Joined: 06 Aug 2014, 10:24

More values for NZBPP variables?

Post by Nedle » 15 Aug 2014, 15:08

In the documentation I see that the codes for NZBPP_UNPACKSTATUS mean the following:

Result of unpack:
0 = unpack is disabled or was skipped due to nzb-file properties or due to errors during par-check;
1 = unpack failed;
2 = unpack successful.

But in some scripts I see that there are more codes, for example in the email PP-script:

Code: Select all

 elif os.environ['NZBPP_UNPACKSTATUS'] in ('3', '4'): 
What do these codes mean?

//I'm Running NZBGet 12.0, can't update since it's on android and I don't build it myself.

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

Re: More values for NZBPP variables?

Post by hugbug » 15 Aug 2014, 15:22

Code: Select all

3 = write error (usually not enough disk space);
4 = wrong password (only for rar5 archives).
Updated the docs.

However in v13 these variables are deprecated and should not be used anymore. Use NZBPP_STATUS and NZBPP_TOTALSTATUS instead. For details see RPC-API reference.

Nedle
Posts: 49
Joined: 06 Aug 2014, 10:24

Re: More values for NZBPP variables?

Post by Nedle » 15 Aug 2014, 17:09

hugbug wrote:

Code: Select all

3 = write error (usually not enough disk space);
4 = wrong password (only for rar5 archives).
Updated the docs.

However in v13 these variables are deprecated and should not be used anymore. Use NZBPP_STATUS and NZBPP_TOTALSTATUS instead. For details see RPC-API reference.
Thanks, could you also update them for PARSTATUS?
I'd prefer to use 13 as well but I'm running it on android so I'll have to wait for the App to be updated.

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

Re: More values for NZBPP variables?

Post by hugbug » 15 Aug 2014, 17:14

I don't think it will be ever updated. You better compile it yourself (and even publish it).

Code: Select all

PARSTATUS:
4 = par-check needed but skipped (option ParCheck=manual).

Nedle
Posts: 49
Joined: 06 Aug 2014, 10:24

Re: More values for NZBPP variables?

Post by Nedle » 16 Aug 2014, 15:04

hugbug wrote:I don't think it will be ever updated. You better compile it yourself (and even publish it).

Code: Select all

PARSTATUS:
4 = par-check needed but skipped (option ParCheck=manual).
Thanks for the updated docs. Never compiled anything myself so not too experienced. Haven't done much beyond dabble a bit in linux shell scripts/ some python / some java..

BTW I kept having urllib2 errors when running a script from NZBGet, seemed to work fine when I ran it independent of NZBGet. Resorted to using a shell script for now. Were all these kind of errors:

Code: Select all

urllib2.URLError: <urlopen error [Errno 2] temporary failure in name resolution.>

Post Reply

Who is online

Users browsing this forum: No registered users and 45 guests