Sort queue according to file size when nzb is added

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
hyptonize
Newbie
Newbie
Posts: 2
Joined: May 18th, 2010, 11:30 am

Sort queue according to file size when nzb is added

Post by hyptonize »

Hi there,

I want SABnzbd to automatically sort the queue from lowest to highest filesize when an nzb is added. I've already looked at the pre-queue scripts but it doesn't support sorting queue parameters. I use Sonarr and CouchPotato but they don't support adding parameters to the API calls either. I do know that the API does have an option to sort the queue every API call, but there's no way to change the API calls in either Sonarr and CouchPotato. Does anyone know another solution?
User avatar
safihre
Administrator
Administrator
Posts: 5678
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Sort queue according to file size when nzb is added

Post by safihre »

I don't think there's a way to do it automated.
You can call the API from the pre-queue script to sort, but then the new NZB will still be added at the end.
I could imagine that you use a pre-queue scrip to give different priorities to different sizes, so for example setting big downloads to always be low priority.
This at least gives you 4 levels of sorting based on size..
https://sabnzbd.org/wiki/scripts/pre-queue-scripts
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Sort queue according to file size when nzb is added

Post by sander »

I do know that the API does have an option to sort the queue every API call, but there's no way to change the API calls in either Sonarr and CouchPotato. Does anyone know another solution?
Call that API from the command line each x minutes?
Post Reply