Page 1 of 1

[SOLVED] wrong category priority?

Posted: September 21st, 2017, 8:05 pm
by OneCD
Hello,

I've a SAB category named "tv" with a priority of 'high'.

Since upgrading to 2.3.0 from 2.2.1, the NZBs received from SickRage are being correctly assigned to the "tv" category in SAB, but are being set to 'normal' priority.

The following debug line may not be relevant but thought I'd include it anyway:

Code: Select all

2017-09-22 10:48:29,944::DEBUG::[nzbstuff:544] META-DATA = {u'category': [u'TV > HD'], u'propername': [u"------------------"], u'name': [u'---------------S01E04.720p.HDTV.x264------'], u'episodename': [u'Episode 4']}
Bug?

Thank you. ;D

Re: wrong category priority?

Posted: September 22nd, 2017, 12:11 am
by safihre
If sickrage includes in the url a priority=x parameter, this overrules the category setting. Is that maybe the case? You should be able to see the API add command in the logs to. What does it look like?

Re: wrong category priority?

Posted: September 22nd, 2017, 12:32 am
by OneCD
safihre wrote: September 22nd, 2017, 12:11 am You should be able to see the API add command in the logs to.
Ah, didn't spot that earlier. ;)

Here it is:

Code: Select all

2017-09-22 15:27:32,461::DEBUG::[interface:462] API-call from 127.0.0.1 [Sick-Rage.CE.1/(Linux; 3.4.6; 6c54b080-9bb9-11e7-84a0-00089bcfb478)] {'output': u'json', 'apikey': u'<HASH>d3240a3', 'mode': u'addurl', 'name': u'https://---------/fetch/<HASH>19032e8/<HASH>25fedcf', 'cat': u'tv'}

Re: wrong category priority?

Posted: September 22nd, 2017, 1:09 am
by safihre
Ah, so it's not sending the parameter.
I'll go an check it out!

Re: wrong category priority?

Posted: September 22nd, 2017, 2:44 am
by safihre
Found bug.
Will be fixed for next release :)

Re: wrong category priority?

Posted: September 22nd, 2017, 3:02 am
by OneCD
Nicely done. Thanks safihre. :)

Re: wrong category priority?

Posted: September 22nd, 2017, 3:13 am
by OneCD
Confirmed: downloaded the updated nzbstuff.py into my master installation, sent an episode from SickRage to SAB and it is now assigned the correct priority. :D

Re: wrong category priority?

Posted: September 23rd, 2017, 5:21 pm
by OneCD
Oops, spoke too-soon. ???

Just found the same problem occurs during a manual 'add'.

SABnzbd 2.3.0

Via the SAB GUI, I browsed to my ZIP file (containing a couple of NZBs), selected the required category, left all the other options as 'default' (post processing, priority, script), clicked 'Add', then found the NZBs are in the download queue in the correct category, but with 'normal' priority.

Bug?

Re: wrong category priority?

Posted: September 24th, 2017, 4:03 am
by safihre
Fixed!

Re: wrong category priority?

Posted: September 24th, 2017, 4:14 am
by OneCD
Thanks safihre. :)