[Libtorrent-devel] Setting up multiple/conditional event.download.finished?

Jari Sundell sundell.software at gmail.com
Mon Feb 9 06:54:38 UTC 2009


Balaji Dutt wrote:
> I expected that this "mv,-u" command would execute only for the watched 
> directory torrents. Clearly, I wasn't thinking very clearly as this is a 
> "system.method". So, even normal torrents trigger this command. Problem 
> with every torrent executing this command is that many of them don't 
> have a "custom1" tag and the directory/file path info inside rtorrent 
> gets messed up, triggering error messages about "download complete, but 
> hash check shows incomplete files"

I don't really see where you would get the idea it would only execute 
for those torrents, as there's no reference at all to the watch dir or 
anything in the command you added.

> I'd be very grateful if someone could clarify the following -
> 
> 1. Can I have more than one event.download.finished which calls mv -u 
> but with different parametersdepending on whether it is a watch 
> directory torrent or a torrent I load manually?

Use the 'branch' command to check for custom1.

Jari Sundell


More information about the Libtorrent-devel mailing list