> The alternative would be some sort of script that checks the possible
> download folders where the data might be. But that would be pretty
> complicated...

I don't know whether this should be marked as complicated or not, but anyway:

1) in load= or inserted handeler, trigger d.check_hash= on seeding directory
2) on hash_done handler, branch by the result, to d.start= (to seed)
or to d.close=
3) on closed hander, change directory to download_in_progress and d.start=

(you can't put them in a row because status changes won't be processed in place)

I'm not sure what to do when the hash resulted to not empty but
incomplete. And in addition you should branch by custom flagging, in
order not to miss-fire in other context (i.e. when manually
closed/restarted etc). Tons of headache.
_______________________________________________
Libtorrent-devel mailing list
[email protected]
http://rakshasa.no/mailman/listinfo/libtorrent-devel

Reply via email to