What Is 20 Minutes?

Suggest, post, or discuss plugins for Deluge
chnaski
Member
Member
Posts: 16
Joined: Sun Feb 26, 2023 1:39 pm

What Is 20 Minutes?

Post 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 26967 times
sc.png
sc.png (102.64 KiB) Viewed 26967 times
basher
Leecher
Leecher
Posts: 91
Joined: Wed Sep 29, 2021 8:42 am
Location: Estonia/Spain

Re: What Is 20 Minutes?

Post 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.
Last edited by basher on Tue Feb 28, 2023 9:56 am, edited 1 time in total.
chnaski
Member
Member
Posts: 16
Joined: Sun Feb 26, 2023 1:39 pm

Re: What Is 20 Minutes?

Post by chnaski »

Thank you
I use this version
viewtopic.php?t=55733
basher
Leecher
Leecher
Posts: 91
Joined: Wed Sep 29, 2021 8:42 am
Location: Estonia/Spain

Re: What Is 20 Minutes?

Post 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.
Last edited by basher on Tue Feb 28, 2023 10:13 am, edited 1 time in total.
chnaski
Member
Member
Posts: 16
Joined: Sun Feb 26, 2023 1:39 pm

Re: What Is 20 Minutes?

Post 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
basher
Leecher
Leecher
Posts: 91
Joined: Wed Sep 29, 2021 8:42 am
Location: Estonia/Spain

Re: What Is 20 Minutes?

Post by basher »

Still recommend using my fork though due to aforementioned fixes.
mhertz
Moderator
Moderator
Posts: 2195
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: What Is 20 Minutes?

Post 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 :)
chnaski
Member
Member
Posts: 16
Joined: Sun Feb 26, 2023 1:39 pm

Re: What Is 20 Minutes?

Post 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.
chnaski
Member
Member
Posts: 16
Joined: Sun Feb 26, 2023 1:39 pm

Re: What Is 20 Minutes?

Post 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?
basher
Leecher
Leecher
Posts: 91
Joined: Wed Sep 29, 2021 8:42 am
Location: Estonia/Spain

Re: What Is 20 Minutes?

Post 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
}
Post Reply