![]() Moderator ![]()
|
Looking at the code, it seems that the torrentAdded signal is emitted first and then the QM is told it can manage the torrent.
The result is that whatever you do in the torrentAdded signal handler, it is overwritten by the QM. I will reverse this order, so you can override what the QM does in the signal handler.
It's the way kross works. You need to manually cleanup things. For this you need to implement the unload method: http://ktorrent.org/wiki/index.php/Writ ... ts#Cleanup |
![]() Moderator ![]()
|
|
![]() Moderator ![]()
|
No syntax is OK, there is some problem with Kross where you can't seem to unload scripts, I need to get to the bottom of this. Disconnects not working, seems to be related to this.
That code seems to work here, newly added torrents get top priority
I think I see what the problem is, the last activity timestamps are initialized after preallocation is done. Need to do that before preallocation. |
![]() Moderator ![]()
|
I had a look at the kross python code, and the reason why disconnect doesn't work, is that it isn't implemented.
|
Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]