[Libtorrent-devel] multiple e-mail notifications.

Josef Drexler josef at ttdpatch.net
Fri Aug 15 17:54:58 UTC 2008


On Aug 15, 2008, at 8:16 AM, Adrian Miller wrote:

> Hi Josef
>
> I'm lost on how to do this, is it possible to get an example that I  
> can work from for option a.

Well, working from the examples at the page I mentioned, something like

schedule = watch_directory_1,10,10,"load_start=~/Download/ 
watch_stuff1/*.torrent,d.set_custom1=~/script1.sh"
schedule = watch_directory_2,10,10,"load_start=~/Download/ 
watch_stuff2/*.torrent,d.set_custom1=~/script2.sh"

on_finished=notify,"execute=$d.get_custom1=,$d.get_hash=,$d.get_name="

Of course this will only work for downloads added after you set this  
up, any existing one that finish will not have anything in custom1.

-- 
Josef Drexler
josef at ttdpatch.net





More information about the Libtorrent-devel mailing list