Ratio rules aren't very well explained, how do I make sure two conditions are...

shwetha17

Member
May 24, 2018
785
0
16
...met.

Basically, I want to do:-

Code:
if(ratio > minRatio && time > maxTime) {
action();
}
Assuming that minRatio is the "Min,%" from the configuration, "maxTime" is the "Time,h" from the configuration, "ratio" is the current torrent's ratio and "time" is the current torrent's time running.

How would I go about doing this? Or do I have to modify the code of the plugin? (I don't really know PHP standards, so, I don't want to mess it up).
 

shwetha17

Member
May 24, 2018
785
0
16
Not only is that out of date, it's not very informative.

Anyway, I gave up and I'm just doing time based ratio groups now, however, it would be nice if I could say something like "if a torrents been in the client for 12 hours, and, it has a ratio below 5, and, it's from a certain ratio group, delete it, however, if a torrents been in the client for 12 hours, and, it has a ratio above 5, and, it's from a certain ratio group, move it to a different ratio group".

I'll look into the API tomorrow and see how hard it is to implement that, probably not very. Thanks anyway.