[Libtorrent-devel] Deprecated on_* commands. What to do?

Saxfusion saxfusion at gmail.com
Mon Jun 15 15:07:18 UTC 2009


**Sorry, forgot to CC the-devel-list**

I am using (svn1093). With v1087 (0.8.4) the syntax changed, but parts of
the command still showed the on*-part as you mention for
rtorrent-common-tasks.

What works for me right now are the following (i left the old versions in
there, but did comment them out. So you can see my "history"):

One of my watch-directories:
schedule = watch_directory_1,10,10,"load_
start=/path/to/file/*.torrent,d.set_custom1=/path/to/custom1/,d.set_custom2=/path/to/custom2/"

# On completion, move the torrent to the directory from custom1.
# on_finished =
move_complete,"execute=mv,-u,$d.get_base_path=,$d.get_custom1=
;d.set_directory=$d.get_custom1="
# on_finished = move_complete,"d.set_directory=$d.get_custom1=
;execute=mv,-u,$d.get_base_path=,$d.get_custom1="
system.method.set_key =
event.download.finished,move_complete,"d.set_directory=$d.get_custom1=
;execute=mv,-u,$d.get_base_path=,$d.get_custom1="

# On erase, move the torrent to the directory from custom2.
# on_erase = move_complete,"execute=mv,-u,$d.get_base_path=,$d.get_custom2=
;d.set_directory=$d.get_custom2="
# on_erase = move_complete,"d.set_directory=$d.get_custom2=
;execute=mv,-u,$d.get_base_path=,$d.get_custom2="
system.method.set_key =
event.download.erased,move_complete,"d.set_directory=$d.get_custom2=
;execute=mv,-u,$d.get_base_path=,$d.get_custom2="

Hope you can use it to get a drift.

Nevertheless i hope the documentation is updated some time. Puzzling it all
out with different syntaxes, new view-abilities and so on and on ... from
the trac-tickets is draining me out pretty good ...


2009/6/14 Jens Rasmus Liland <jensrasmus at gmail.com>

> What do I write instead?
>
> On Sat, Jun 13, 2009 at 9:20 PM, Jens Rasmus Liland <jensrasmus at gmail.com>wrote:
>
>> I use latest svn (@1094), I rebuilt today.
>>
>> On Sat, Jun 13, 2009 at 8:08 PM, markus reichelt <ml at mareichelt.de>wrote:
>>
>>> * Jens Rasmus Liland <jensrasmus at gmail.com> wrote:
>>>
>>> > I've updated to the latest svn-version of rtorrent and libtorrent,
>>> > and got this message when starting rtorrent first time after using
>>> > an old .rtorrent.rc-file:
>>>
>>> From which version did you update to svn?
>>>
>>>
>>> > Deprecated on_* commands, use 'system.method.set_key =
>>> > event.download.{inserted, erased, ...}, <key>, <command>' instead.
>>> >
>>> > What is really depreached about these lines?:
>>>
>>> Hm. http://libtorrent.rakshasa.no/wiki/RTorrentCommonTasks still
>>> lists these indeed. So no idea, I don't use them.
>>>
>>> --
>>> left blank, right bald
>>>
>>> _______________________________________________
>>> Libtorrent-devel mailing list
>>> Libtorrent-devel at rakshasa.no
>>> http://rakshasa.no/mailman/listinfo/libtorrent-devel
>>>
>>>
>>
>
> _______________________________________________
> Libtorrent-devel mailing list
> Libtorrent-devel at rakshasa.no
> http://rakshasa.no/mailman/listinfo/libtorrent-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rakshasa.no/pipermail/libtorrent-devel/attachments/20090615/5bc0a313/attachment.html


More information about the Libtorrent-devel mailing list