Help implementing patch to stop torrents after x timeseeding
Posted: Sat Oct 02, 2010 7:01 pm
Hi,
I am going to try to implement a patch to provide the functionality of stopping a torrent after x time seeding. See ticket #976. I am new to deluge code so I need some help from any dev willing to. First of all I have some general questions:
1. Any general tips on where to start looking? deluge-core, libtorrent??
2. Where should the logic of the stopping go (the code actually checking if time seeding is greater than the selected from the user)? Is something that go to the python code in deluge or in the libtorrent one for instance?
I have started taking a look at the code. My idea was to follow the logic of how stopping a torrent at some ratio works and go from there. However:
3. what is the difference between the "stop_ratio" and "stop_at_ratio" options? I guess one is per torrent and the other one general for all but which is which?
Any help will be greatly appreciated. Obviously, if you believe this options is no use at all then please say so!!
Regards,
I am going to try to implement a patch to provide the functionality of stopping a torrent after x time seeding. See ticket #976. I am new to deluge code so I need some help from any dev willing to. First of all I have some general questions:
1. Any general tips on where to start looking? deluge-core, libtorrent??
2. Where should the logic of the stopping go (the code actually checking if time seeding is greater than the selected from the user)? Is something that go to the python code in deluge or in the libtorrent one for instance?
I have started taking a look at the code. My idea was to follow the logic of how stopping a torrent at some ratio works and go from there. However:
3. what is the difference between the "stop_ratio" and "stop_at_ratio" options? I guess one is per torrent and the other one general for all but which is which?
Any help will be greatly appreciated. Obviously, if you believe this options is no use at all then please say so!!
Regards,