[SOLVED] wrong category priority?

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
User avatar
OneCD
Hero Member
Hero Member
Posts: 557
Joined: March 4th, 2017, 3:47 pm

[SOLVED] wrong category priority?

Post 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
Last edited by OneCD on September 27th, 2017, 2:04 pm, edited 3 times in total.
Stuff I like: Apache bash cron DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo-S20 pfSense Python Raspberry-Pi RAID SABnzbd Transmission Usenet VirtualBox Watcher3 XFCE
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: wrong category priority?

Post 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?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
OneCD
Hero Member
Hero Member
Posts: 557
Joined: March 4th, 2017, 3:47 pm

Re: wrong category priority?

Post 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'}
Stuff I like: Apache bash cron DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo-S20 pfSense Python Raspberry-Pi RAID SABnzbd Transmission Usenet VirtualBox Watcher3 XFCE
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: wrong category priority?

Post by safihre »

Ah, so it's not sending the parameter.
I'll go an check it out!
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: wrong category priority?

Post by safihre »

Found bug.
Will be fixed for next release :)
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
OneCD
Hero Member
Hero Member
Posts: 557
Joined: March 4th, 2017, 3:47 pm

Re: wrong category priority?

Post by OneCD »

Nicely done. Thanks safihre. :)
Stuff I like: Apache bash cron DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo-S20 pfSense Python Raspberry-Pi RAID SABnzbd Transmission Usenet VirtualBox Watcher3 XFCE
User avatar
OneCD
Hero Member
Hero Member
Posts: 557
Joined: March 4th, 2017, 3:47 pm

Re: wrong category priority?

Post 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
Stuff I like: Apache bash cron DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo-S20 pfSense Python Raspberry-Pi RAID SABnzbd Transmission Usenet VirtualBox Watcher3 XFCE
User avatar
OneCD
Hero Member
Hero Member
Posts: 557
Joined: March 4th, 2017, 3:47 pm

Re: wrong category priority?

Post 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?
Stuff I like: Apache bash cron DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo-S20 pfSense Python Raspberry-Pi RAID SABnzbd Transmission Usenet VirtualBox Watcher3 XFCE
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: wrong category priority?

Post by safihre »

Fixed!
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
OneCD
Hero Member
Hero Member
Posts: 557
Joined: March 4th, 2017, 3:47 pm

Re: wrong category priority?

Post by OneCD »

Thanks safihre. :)
Stuff I like: Apache bash cron DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo-S20 pfSense Python Raspberry-Pi RAID SABnzbd Transmission Usenet VirtualBox Watcher3 XFCE
Post Reply