set torrent queue position from code

Suggestions and discussion of future versions
Post Reply
ledzgio
Member
Member
Posts: 29
Joined: Tue Oct 20, 2009 9:24 pm

set torrent queue position from code

Post by ledzgio »

Hi to all,

how can i change a torrent position within the queue from a plugin using deluge API? I would like to set the position of the torrent within the queue.

thanks
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: set torrent queue position from code

Post by johnnyg »

ledzgio
Member
Member
Posts: 29
Joined: Tue Oct 20, 2009 9:24 pm

Re: set torrent queue position from code

Post by ledzgio »

Ok thanks.

There are methods to move up, down, top and bottom a torrent, is there a method to specify the (new) position of a torrent?

e.g. queue_position(torrent_id, new_position)

thanks
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: set torrent queue position from code

Post by johnnyg »

Unless that position is first or last, then no.
Post Reply