This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Queue Manager Desired Changes

Tags: None
(comma "," separated)
George
Moderator
Posts
5421
Karma
1

Re: Queue Manager Desired Changes

Fri Feb 26, 2010 7:37 pm
Sam wrote:Hi George,

Queue Manager Desired Changes

In the Queue Manager (bottom pane):
- Ability to select an item and right click to change item to Queued or Not queued.
- Double Clicking item selects item in top pane (if item is in that Group).


In Configure Ktorrent:
Add checkbox and timer to turn Queue Manager into a batch process (checkbox) that only runs every X minutes (timer).

Rational: User could make more than one change without triggering a Queue Manager update.

If I'm reading the API correctly, basically only issue a Ktorrent.orderQueue() every X minutes and don't allow the Queue to be ordered otherwise. I'd rather just make this into a script as there are several other things I'd like to configure. But, will the existing Queue Manager still initiate queue updates (re-ordering?) based upon any change to the queue? The reason I ask is I did try checking "Control torrents manually," but moving an item up in the queue still triggered a hang event as shown in thread viewtopic.php?f=2&t=3394

I'd hate to write a spiffy script and have it get clobbered by the existing Queue Manager.



If the QM is disabled, then the only thing an orderQueue does is to sort the torrents. Strange though that this could be the cause of a bunch of hangs, sorting should be very efficient.

So if you want to write a script to take over QM duties, putting it into manual mode should allow you to do things manually.

And some Queue / API question:

1)
http://ktorrent.org/wiki/index.php/API_Reference
tor.priority() Returns the torrents priority in the queue, the higher the number the higher the priority.

Shouldn't that read?: …, the lower the number the higher the priority.


No the bigger, the higher the priority

2)
In the same doc, I found;

group.maxShareRatio()
group.setMaxShareRatio(ratio)
group.maxSeedTime()
group.setMaxSeedTime(hours)

is it safe to assume that these exist as well (but aren't documented)?

tor.maxShareRatio()
tor.setMaxShareRatio(ratio)
tor.maxSeedTime()
tor.setMaxSeedTime(hours)


They do not exist yet.

3)
Would this work to figure out how many total torrents there are? (Or is there a better way?)

tors = KTorrent.torrents()
NumTors = len(tors)


Yes

4)
Is there a repository for user scripts somewhere? I couldn't seem to find it. (Always easier to start with a working example :)


Not at the moment, at some point I want to start using get hot new stuff for downloading scripts.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]