Page 1 of 1

[Queue-Script] QueueSort - automatic queue sorting

Posted: 11 Feb 2015, 19:50
by hugbug
Once a new nzb-file is added to queue this script resorts all nzb-files in the download queue according to the sort order defined in the script settings.

Please take into account that if you reorder files manually, the order will be changed again when a new nzb-file is added to queue, overriding your changes.

This script requires NZBGet 15.0-testing-r1205 or newer.

Script-version: 1.0

Re: [Queue-Script] QueueSort - automatic queue sorting

Posted: 19 Feb 2015, 17:22
by get39678
If you test this script with adding 200 items to the queue (clearly shows the problem) it takes it quite some time to sort out the duplicates probably due to it continually sorting.

Is there anything that could be done to limit the number of times it sorts?

Thanks

Re: [Queue-Script] QueueSort - automatic queue sorting

Posted: 19 Feb 2015, 18:55
by hugbug
I've tested with 200 nzbs and it worked without issues. The test was run a fast desktop PC. I wouldn't do that on my small linux box, where python-scripts require several seconds just to boot.

What do you mean with "clearly shows the problem", what problem does it show?
To info:
  • duplicates go straight to history without calling of queue-scripts;
  • queue-scripts are executed asynchronously after the nzbs are added to queue;
  • you can continue using the program when queue-scripts work.
What hardware you did this test on? Is the problem with slow starting of python? Check the time interval between messages "Executing queue-script QueueSort.py" and "QueueSort: Sorting queue".

Re: [Queue-Script] QueueSort - automatic queue sorting

Posted: 25 Jan 2016, 01:51
by TheStapler
I can't seem to get this working... I am not sure maybe I have the wrong version of python, but I am using the PHAZE UNRAID installer...