Page 7 of 11

Re: [Plugin] Auto Remove Plus v2.0.0

Posted: Wed Mar 15, 2023 12:17 pm
by basher
Nanobug wrote: Wed Mar 15, 2023 11:52 am But I can't figure out how I make it delete torrents with a specific label, based on seed time, preferably days, since I'm going for 30 and 60 days on two different labels.
Can someone explain to me how it should be done?
If you're using my version, then seed time rules are configured in hours. Just have to live with it, as I (and most others I've discussed it with) find it easiest to work with.

For a configuration example see this post of mine.

Re: [Plugin] Auto Remove Plus v2.0.0

Posted: Wed Mar 15, 2023 1:26 pm
by Nanobug
I don't mind it being in hours :)

From what I can see, this only has 1 rule.
How do I make 2 separate rules?
- As mentioned, they do the same, just with 30 and 60 days on each label.

Re: [Plugin] Auto Remove Plus v2.0.0

Posted: Wed Mar 15, 2023 2:38 pm
by basher
Example rule for 2 labels. Logic executes hourly:

Code: Select all

{
  "file": 1, 
  "format": 1
}{
  "labels": [], 
  "hdd_space": -1, 
  "use_quota_for_free_space": false,
  "label_rules": {
    "label1": [
      [
        "or", 
        "func_seed_time", 
        720
      ]
    ],
    "label2": [
      [
        "or", 
        "func_seed_time", 
        1440
      ]
    ]
  }, 
  "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": 1
}

Re: [Plugin] Auto Remove Plus v2.0.0

Posted: Wed Mar 15, 2023 2:40 pm
by Nanobug
Oh, you didn't have to make it for me. I just wanted to learn how to do it.
Do you have some documentation I can look into? Just in case I want to do more with it.

And thank you :)

Re: [Plugin] Auto Remove Plus v2.0.0

Posted: Wed Mar 15, 2023 2:45 pm
by basher
Nanobug wrote: Wed Mar 15, 2023 2:40 pm Do you have some documentation I can look into? Just in case I want to do more with it.
Not more than on the github. It's in my todo-list, but haven't taken the time yet.

Btw noticed you're using tote's version. Nothing wrong with it, but my fork includes best parts (IMHO) of his and springjoos' versions, including some fixes&improvements mhertz has introduced. Ie. not to toot my own horn, but I'd start using that version - especially if/when you get into issues; otherwise debugging will be problematic.

Now that you have base config set up, feel free to modify rules via the UI. I always found the UI unintuitive though, so be aware.

Re: [Plugin] Auto Remove Plus v2.0.0

Posted: Wed Mar 22, 2023 9:29 am
by BinaryData
Well, I wasn't having any issues with this until I made a single change. Even if I undo that change, it still doesn't work. Here is the config file, and here is what I'm wanting.

Every 15 minutes check to see if a torrent has seeded for a minimum of 1 hour and remove it + data. If 15 minutes won't work, an hour will do.

Code: Select all

Version: AutoRemovePlus-2.0.0-py3.8.egg

Code: Select all

{
    "file": 1,
    "format": 1
}{
    "count_exempt": false,
    "enabled": true,
    "filter": "func_seed_time",
    "filter2": "func_ratio",
    "hdd_space": 10.0,
    "interval": 0.25,
    "label_rules": {},
    "labels": [],
    "max_seeds": 0,
    "min": 1.0,
    "min2": 0.0,
    "remove": true,
    "remove_data": true,
    "rule_1_enabled": true,
    "rule_2_enabled": false,
    "sel_func": "and",
    "tracker_rules": {},
    "trackers": []
ARP_UI.png
ARP_UI.png (19.02 KiB) Viewed 117542 times

Re: [Plugin] Auto Remove Plus v2.0.0

Posted: Wed Mar 22, 2023 9:46 am
by mhertz
Not one of the devs sorry, and cannot remember if interval is hours or days and dont have time to check right now, but besides that, then min free space probably need be -1 unless on purpose.

Edit: Checked tote94's github and interval is 1 hour, so fine, and sorry you most probably knew that already and just me not.

Re: [Plugin] Auto Remove Plus v2.0.0

Posted: Wed Mar 22, 2023 10:44 am
by BinaryData
mhertz wrote: Wed Mar 22, 2023 9:46 am Not one of the devs sorry, and cannot remember if interval is hours or days and dont have time to check right now, but besides that, then min free space probably need be -1 unless on purpose.

Edit: Checked tote94's github and interval is 1 hour, so fine, and sorry you most probably knew that already and just me not.
I read somewhere on here they changed it from days to hours but I'll give that a test and go from there.

Edit: Changed it to -1, and instantly removed everything. I have no idea why 10G was even set, I never changed that. Weird.

Well, derp moment over. Thanks @mhertz.

Re: [Plugin] Auto Remove Plus v2.0.0

Posted: Wed Mar 22, 2023 11:12 am
by mhertz
You're welcome, glad it worked out! :)

Agreed, I think it's a bad default also, imho, and -1 better.

Last, as this fork hasen't been updated in 2.5 years, then hope i'm not too out of line in reommending maybe checking out newest autoremoveplus code from basher's fork here: https://github.com/laur89/deluge-autoremoveplus (Edit: Incidentally also using -1 as default for 'hdd_space' ) - Just in case didn't knew, and otherwise please just disregard :)

Re: [Plugin] Auto Remove Plus v2.0.0

Posted: Mon Aug 07, 2023 4:16 pm
by CrowdIA
Hello, how to delete torrents that have been in seeding for more than 45 days except those with the "donotdelete" label? Can you send me screenshots or the configuration to put please?