[Queue-Script] QueueSort - automatic queue sorting

Share your scripts or request scripts with specific features.
Forum rules
Please keep the forum clean - one topic per script. Questions not related to a specific script should be posted in Support forum.
Post Reply
hugbug
Developer & Admin
Posts: 7402
Joined: 09 Sep 2008, 11:58
Location: Germany

[Queue-Script] QueueSort - automatic queue sorting

Post by hugbug » 11 Feb 2015, 19:50

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
Attachments
QueueSort.py
QueueSort-1.0
(4.27 KiB) Downloaded 598 times

get39678
Posts: 219
Joined: 09 Jun 2014, 10:49

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

Post by get39678 » 19 Feb 2015, 17:22

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

hugbug
Developer & Admin
Posts: 7402
Joined: 09 Sep 2008, 11:58
Location: Germany

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

Post by hugbug » 19 Feb 2015, 18:55

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".

TheStapler
Posts: 11
Joined: 10 Jan 2016, 23:18

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

Post by TheStapler » 25 Jan 2016, 01:51

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...

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests