On Sep 2, 2008, at 7:47 AM, Adrian Miller wrote:
I am using the on_start command to send an e-mail when a file is uploaded to the watch directory, and the on_finished to send an e- mail when the file has finished.

The basics of it is working quite well, however if I was to stop a torrent and restart it it would then send out another start e-mail.

Also when a torrent has finished it send out its finished e-mail and another started email, it would guess that the torrent is restarted for seeding hence the additional start e-mail.

is there another command that only looks at the .torrent file the first time it is picked up in the watch directory?

There are also on_open and on_insert. The latter would trigger again whenever you restart rtorrent, but otherwise only once per download. I'm not sure whether on_open gets triggered after the hash check temporarily closes the download when it's done.

--
Josef Drexler
[EMAIL PROTECTED]
_______________________________________________
Libtorrent-devel mailing list
[email protected]
http://rakshasa.no/mailman/listinfo/libtorrent-devel

Reply via email to