[Plugin] Prioritize - Optimizes torrent queueing

Suggest, post, or discuss plugins for Deluge
Post Reply
dryploefo
New User
New User
Posts: 6
Joined: Tue Jul 08, 2014 9:24 pm

[Plugin] Prioritize - Optimizes torrent queueing

Post by dryploefo »

I hope I'm doing this right, this is my first plugin for Deluge.

I've been using FlexGet a lot recently and when there are a lot of torrents whose availability is not always reliable, it's a pain to manage the queue to keep track of what should be downloading and what should be downloading later. So, I wrote this plugin to help manage that. At this time, there is no UI to configure it! I will work on this once the main plugin has stabilized.

What it does

There are several settings in the prioritize.conf file that you will have to tweak manually (while Deluge is not running).

The enable_trackers is a boolean to turn on/off the use of the priority_trackers list. By adding the host name of the tracker(s) to the list, it will automatically move the torrent to the top of the queue only if it matches one of those trackers. Yes, Deluge already has an option to move added torrents to the top. However, it does it for all added torrents and I needed it to only move it from trackers I know are fast and reliable.

The enable_max_requeue option is a boolean to turn on/off the use of re-queuing torrents which no longer have seeds after a specified amount of time. Use the max_requeue_count to determine how many times it is allowed to be re-queued before the torrent is paused and use max_zombie_timeout to determine the amount of seconds that a torrent must not have seeders before it will be moved to the bottom of the queue.

Since this is a first release and not release-ready, use the warning option for logging to see its output.

How it works

Adding torrents:
1) If the torrent uses a tracker specified in priority_trackers, queue to top.

Re-prioritization:
1) If the torrent is not downloading, skip it.
2) If the torrent has reached the max_zombie_timeout period, queue to bottom.
3) If the torrent has reached the max_requeue_count number, pause the torrent.

Hopefully someone else finds this useful.

Sample prioritize.conf:

Code: Select all

{
  "file": 1,
  "format": 1
}{
  "enable_max_requeue": true,
  "max_zombie_timeout": 300,
  "max_requeue_count": 10,
  "enable_trackers": true,
  "priority_trackers": [
    "mytracker.com"
  ]
}
Download Prioritize, Python 2.7
Current Version: 0.5

Version 0.5
- Fixed issue with infinitely re-prioritizing queued items when using trackers.
- Sorry, still no UI for Glade yet.
- Known issue: When restarting Deluge, you might have to disable/re-enable the plugin a couple of times. Not sure why this is happening yet, but I think I have an idea.

Version 0.4
- Hotfixed an issue with not prioritizing.
- Earlier 0.4 did not work correctly, try downloading again.

Version 0.3
- Added UI for all available options.

Version 0.2
- Added rudimentary UI to manage priority trackers and some settings. Still need to fix layout and add a couple more options.
- Added exception handling so as not to kill the update timer.
Last edited by dryploefo on Fri Sep 05, 2014 4:36 am, edited 4 times in total.
dryploefo
New User
New User
Posts: 6
Joined: Tue Jul 08, 2014 9:24 pm

Re: [Plugin] Prioritize - Optimizes torrent queueing

Post by dryploefo »

Version 0.2
- Added rudimentary UI to manage priority trackers and some settings. Still need to fix layout and add a couple more options.
- Added exception handling so as not to kill the update timer.

If anyone is using this, please leave feedback and/or suggestions.
dryploefo
New User
New User
Posts: 6
Joined: Tue Jul 08, 2014 9:24 pm

Re: [Plugin] Prioritize - Optimizes torrent queueing

Post by dryploefo »

Version 0.3
- Added UI for all available options.
dryploefo
New User
New User
Posts: 6
Joined: Tue Jul 08, 2014 9:24 pm

Re: [Plugin] Prioritize - Optimizes torrent queueing

Post by dryploefo »

Version 0.5
- Fixed issue with infinitely re-prioritizing queued items when using trackers.
- Sorry, still no UI for Glade yet.
- Known issue: When restarting Deluge, you might have to disable/re-enable the plugin a couple of times. Not sure why this is happening yet, but I think I have an idea.
Katmassive

Re: [Plugin] Prioritize - Optimizes torrent queueing

Post by Katmassive »

I think this great but it does not support python 2.6 .. So i cant use it. I need this in my life.
slvrdragn
Member
Member
Posts: 36
Joined: Tue Dec 12, 2017 4:50 pm

Re: [Plugin] Prioritize - Optimizes torrent queueing

Post by slvrdragn »

Sadly, this doesn't work in the 2.0 beta :(
Post Reply