Page 1 of 1

Sort queue according to file size when nzb is added

Posted: December 11th, 2016, 4:26 am
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?

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

Posted: December 11th, 2016, 6:07 am
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

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

Posted: December 11th, 2016, 6:21 am
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?