Moderator
|
Why is this necessary ? What does the priority have to do with the info hash ? As for the global hooks, currently all the signals you can connect to are internally emitted by the torrent themselves, so they are just routed to the scripts. It is possible to just additionally add them to the KTorrent module, so you only have to connect to one signal for all torrents. |
Moderator
|
A function like that does not exist in KT itself, the scripting API in my opinion should only export what is available in KT, and not add some additional stuff which might make life easier for some very specific scripts.
It's interpreted code, it is always going to be slower. However if some call is really slow, I would like to know about it, maybe things can be improved.
I have so many things to do, but the scripting definitely needs to be improved and expanded, to become really useful. |
Moderator
|
Those functions were added in 4.0beta2
|
Moderator
|
I will see what is going wrong.
|
Moderator
|
It's fixed now, it turns out krosspython does not like it if you use float in your function return type or argument list. Using doubles instead of floats fixes the problem.
|
Moderator
|
Probably the double to float conversion internally, I could change it to double everywhere, but I don't think these small rounding errors will make much difference.
I have added shareRatio() and seedTime() functions, and for consistency I have renamed getMaxShareRatio() and getMaxSeedTime() into maxShareRatio() and maxSeedTime(). |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]