set_torrent_remove_at deprecated, but not clear from which version

Suggestions and discussion of future versions
Post Reply
p0psicles
New User
New User
Posts: 2
Joined: Sat Nov 06, 2021 12:42 pm

set_torrent_remove_at deprecated, but not clear from which version

Post by p0psicles »

In the docs I can find:

Code: Select all

set_torrent_remove_at_ratio(torrent_id, value)
Deprecated: Use set_torrent_options with ‘remove_at_ratio’

RPC exported method (Auth level: 5)
But I can't find anywhere from which version. I'd like to start using set_torrent_options. But in our project we'd also like to support "older" versions.

Can you tell me in which version this was first introduced?
mhertz
Moderator
Moderator
Posts: 2182
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: set_torrent_remove_at deprecated, but not clear from which version

Post by mhertz »

From this commit: https://github.com/deluge-torrent/delug ... 057d2d3e02

So first in beta1 of deluge 2.0, since you asked from which version specifically.

Just use 'set_torrent_options' as should work in new and even old(1.x), from looks if it.
p0psicles
New User
New User
Posts: 2
Joined: Sat Nov 06, 2021 12:42 pm

Re: set_torrent_remove_at deprecated, but not clear from which version

Post by p0psicles »

Okay thank you. I'll introduce it starting from deleuge 2.0, just to be on the safe side.
mhertz
Moderator
Moderator
Posts: 2182
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: set_torrent_remove_at deprecated, but not clear from which version

Post by mhertz »

You're welcome. BTW, just rechecked that core.set_torrent_options() is available in both 1.x and 2.x, calling torrentmanager's set_options() behind the scenes, but you're probably targeting one of these anyway, since api, gtk3 and py3 diffs, or maintain two different editions, but in theory should be compatible regarding this, is just my point, unless I'm misunderstanding something, though which wouldn't be a first neither :)
Post Reply