Page 1 of 3

What Is 20 Minutes?

Posted: Tue Feb 28, 2023 2:12 am
by chnaski
If I want autoremove plus to remove everything with the 'autodl' label every 20 minutes, it should be 0.0138889 yeah?
sc 1.png
sc 1.png (53.84 KiB) Viewed 30590 times
sc.png
sc.png (102.64 KiB) Viewed 30590 times

Re: What Is 20 Minutes?

Posted: Tue Feb 28, 2023 9:49 am
by basher
Which ARP fork and version are you using?
ARP UI is really confusing which is why I personally only configure it via its configuration file. One thing to note is the removal rules in 'general settings' tab are applied to torrents that have no rules in 'specific remove rules' tab applying to them. You haven't enabled them so it doesn't affect you, but best be aware of it.

> If I want autoremove plus to remove everything with the 'autodl' label every 20 minutes, it should be 0.0138889 yeah?
Assuming your version of ARP uses days as the time unit, then your autodl removal rule looks fine. And yes, 20 minutes sharp would be 0.0138889.

Another thing to note is you've configured the logic to run every 20.016 minutes which would remove autodl-labeled torrents that have seeded for at least 20.16 minutes, so it's possible the logic runs first when torrent has seeded for 20.15 minutes, followed by 20.016 wait time, and then removing the torrent in the following execution, by which time the torrent's seeded for 20.15+20.016 = 40.166 minutes.
Just something to be aware of when debugging the plugin execution.

Last, I recommend asking ARP related usage info in this thread. There I also shouted out my fork of ARP that uses hours as time unit instead of days, as I find it easier to work with. That fork also includes many improvements and fixes implemented by our very own @mhertz that I've gobbled up from different threads.

Re: What Is 20 Minutes?

Posted: Tue Feb 28, 2023 9:54 am
by chnaski
Thank you
I use this version
viewtopic.php?t=55733

Re: What Is 20 Minutes?

Posted: Tue Feb 28, 2023 10:04 am
by basher
If you're using tote's fork then the time values should be in hours as well, meaning both your check interval and rule are misconfigured.

Re: What Is 20 Minutes?

Posted: Tue Feb 28, 2023 10:10 am
by chnaski
basher wrote: Tue Feb 28, 2023 10:04 am If you're using tote's fork then the time units should be in hours as well, meaning both your check interval and rule are misconfigured.
ah that's interesting
i changed it to 0.3333

Re: What Is 20 Minutes?

Posted: Tue Feb 28, 2023 10:20 am
by basher
Still recommend using my fork though due to aforementioned fixes.

Re: What Is 20 Minutes?

Posted: Tue Feb 28, 2023 10:31 am
by mhertz
Thank you basher my friend for your kind wording :)

Chnaski, sorry nothing to add except to note that newest ARP code is basher's plugin, and is a mix between best of both from the two prevailing forks from tote94 and springjools, so would recommend checking out if not.

viewtopic.php?p=234955#p234955

Sorry for butting in, carry on please :)

Re: What Is 20 Minutes?

Posted: Tue Feb 28, 2023 11:24 am
by chnaski
basher wrote: Tue Feb 28, 2023 10:20 am Still recommend using my fork though due to aforementioned fixes.
ok, i'm swithing to that fork. can you send me a conf file for what i want to do?
i will look at this conf file for future changes.

Re: What Is 20 Minutes?

Posted: Tue Feb 28, 2023 11:26 am
by chnaski
basher wrote: Tue Feb 28, 2023 10:20 am Still recommend using my fork though due to aforementioned fixes.
also im assuming this is for python 3.8+
and should i just install the new version as usual and it will override?

Re: What Is 20 Minutes?

Posted: Tue Feb 28, 2023 11:37 am
by basher
Ye, just grab the latest .egg and replace it with your current ARP egg. As long as you're using deluge 2 and py 3.7+ it's going to be fine.
This would be an example of config that runs every 19 minutes and removes autodl labeled torrents that have seeded for at least 20 minutes.
Note if you want it to use labels set by labelplus plugin, then flip the labelplus value to true.
autoremoveplus.conf:

Code: Select all

{
  "file": 1, 
  "format": 1
}{
  "labels": [], 
  "hdd_space": -1, 
  "use_quota_for_free_space": false,
  "label_rules": {
    "autodl": [
      [
        "or", 
        "func_seed_time", 
        0.333333
      ]
    ]
  }, 
  "tracker_rules": {}, 
  "enabled": true, 
  "force_reannounce_before_remove": true, 
  "skip_removal_on_reannounce_failure": true, 
  "reannounce_max_wait_sec": 30, 
  "remove": true, 
  "remove_data": true, 
  "labelplus": false, 
  "rule_1_enabled": false, 
  "rule_2_enabled": false, 
  "min": 2.0, 
  "min2": 0.0, 
  "sel_func": "or", 
  "count_exempt": false, 
  "filter": "func_seed_time",
  "filter2": "func_seed_time", 
  "max_seeds": 0, 
  "trackers": [], 
  "interval": 0.316667
}