[Plugin] Auto Remove Plus v2.0.0

Suggest, post, or discuss plugins for Deluge
Nanobug
Member
Member
Posts: 17
Joined: Fri Apr 19, 2019 7:56 am
Location: Denmark

Re: [Plugin] Auto Remove Plus v2.0.0

Post by Nanobug »

CrowdIA wrote: Mon Aug 07, 2023 4:16 pm 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?
You could do the opposite, and use this:

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
      ]
    ],
CrowdIA
Member
Member
Posts: 10
Joined: Wed Jul 12, 2023 3:54 pm

Re: [Plugin] Auto Remove Plus v2.0.0

Post by CrowdIA »

Nanobug wrote: Mon Aug 07, 2023 4:26 pm
CrowdIA wrote: Mon Aug 07, 2023 4:16 pm 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?
You could do the opposite, and use this:

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
      ]
    ],
Opposite ? I didn't understand sorry. I would like not to do the opposite but what I asked if it is possible please?
Nanobug
Member
Member
Posts: 17
Joined: Fri Apr 19, 2019 7:56 am
Location: Denmark

Re: [Plugin] Auto Remove Plus v2.0.0

Post by Nanobug »

CrowdIA wrote: Mon Aug 07, 2023 4:33 pm
Nanobug wrote: Mon Aug 07, 2023 4:26 pm
CrowdIA wrote: Mon Aug 07, 2023 4:16 pm 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?
You could do the opposite, and use this:

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
      ]
    ],
Opposite ? I didn't understand sorry. I would like not to do the opposite but what I asked if it is possible please?
Instead of labeling it "donotdelete" label it "delete45" or something, then delete it after 45 days.
I can't tell you how to make it, I just offered a solution.
CrowdIA
Member
Member
Posts: 10
Joined: Wed Jul 12, 2023 3:54 pm

Re: [Plugin] Auto Remove Plus v2.0.0

Post by CrowdIA »

Nanobug wrote: Mon Aug 07, 2023 4:35 pm
CrowdIA wrote: Mon Aug 07, 2023 4:33 pm
Nanobug wrote: Mon Aug 07, 2023 4:26 pm

You could do the opposite, and use this:

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
      ]
    ],
Opposite ? I didn't understand sorry. I would like not to do the opposite but what I asked if it is possible please?
Instead of labeling it "donotdelete" label it "delete45" or something, then delete it after 45 days.
I can't tell you how to make it, I just offered a solution.
Ok, I did as you suggested. I don't want to delete torrents that have the "seeding" label, but I want to delete torrents and their data that have the "radarr" or "sonarr" label and that have been seeded for more than 45 days.
From the photos, do I look good in this configuration?
Image
Image
Image

My config file :

Code: Select all

{
    "file": 1,
    "format": 1
}{
    "count_exempt": false,
    "enabled": true,
    "filter": "func_added",
    "filter2": "func_added",
    "hdd_space": -1.0,
    "interval": 24.0,
    "label_rules": {
        "radarr": [
            [
                "or",
                "func_seed_time",
                720
            ]
        ],
        "sonarr": [
            [
                "or",
                "func_seed_time",
                720
            ]
        ]
    },
    "labels": [
        "seeding"
    ],
    "max_seeds": 500,
    "min": 60.0,
    "min2": 45.0,
    "remove": true,
    "remove_data": true,
    "rule_1_enabled": false,
    "rule_2_enabled": false,
    "sel_func": "and",
    "tracker_rules": {},
    "trackers": []
   
On the other hand, I don't understand your "720", is it 720 hours, in this case 720 hours divided by 24 make 30 days, right?
Nanobug
Member
Member
Posts: 17
Joined: Fri Apr 19, 2019 7:56 am
Location: Denmark

Re: [Plugin] Auto Remove Plus v2.0.0

Post by Nanobug »

Looks right to me.
Do it the this way:
24 hours is 1 day, then just multiple 24 with whatever amount of days you want it to be.

Make a test on a separate label and see if it works before you implement it on all of it.
CrowdIA
Member
Member
Posts: 10
Joined: Wed Jul 12, 2023 3:54 pm

Re: [Plugin] Auto Remove Plus v2.0.0

Post by CrowdIA »

Nanobug wrote: Mon Aug 07, 2023 5:00 pm Looks right to me.
Do it the this way:
24 hours is 1 day, then just multiple 24 with whatever amount of days you want it to be.

Make a test on a separate label and see if it works before you implement it on all of it.
Yes I will test that, thank you for your messages.
CrowdIA
Member
Member
Posts: 10
Joined: Wed Jul 12, 2023 3:54 pm

Re: [Plugin] Auto Remove Plus v2.0.0

Post by CrowdIA »

I just tested with a tag I created "labeltest" specifying the seedtime to 2. But 4 hours later my torrent still hasn't deleted. Here is my setup:

Code: Select all

{
    "file": 1,
    "format": 1
}{
    "count_exempt": false,
    "enabled": true,
    "filter": "func_added",
    "filter2": "func_added",
    "hdd_space": -1.0,
    "interval": 0.5,
    "label_rules": {
        "radarr": [
            [
                "and",
                "func_seed_time",
                1440
            ]
        ],
        "sonarr": [
            [
                "and",
                "func_seed_time",
                1440
            ]
        ],
        "testlabel": [
            [
                "and",
                "func_seed_time",
                2
            ]
        ]
    },
    "labels": [
        "seeding"
    ],
    "max_seeds": 500,
    "min": 60.0,
    "min2": 45.0,
    "remove": true,
    "remove_data": true,
    "rule_1_enabled": false,
    "rule_2_enabled": false,
    "sel_func": "and",
    "tracker_rules": {},
    "trackers": []
romprod
Member
Member
Posts: 13
Joined: Mon Jun 29, 2015 8:56 pm

Re: [Plugin] Auto Remove Plus v2.0.0

Post by romprod »

I've come here to check this, how does the plugin calculate the seed time? I notice that the tracker and Deluge have different figured for these. Does the plugin check with the track for my seed time and then remove or does it go against the added time in Deluge (which will likely always be wrong as torrents don't instantly download)

I can't see anyway of viewing from inside of Deluge the seedtime of each torrent (unless I'm blind) just the added time
CrowdIA wrote: Mon Aug 07, 2023 9:31 pm I just tested with a tag I created "labeltest" specifying the seedtime to 2. But 4 hours later my torrent still hasn't deleted. Here is my setup:

Code: Select all

{
    "file": 1,
    "format": 1
}{
    "count_exempt": false,
    "enabled": true,
    "filter": "func_added",
    "filter2": "func_added",
    "hdd_space": -1.0,
    "interval": 0.5,
    "label_rules": {
        "radarr": [
            [
                "and",
                "func_seed_time",
                1440
            ]
        ],
        "sonarr": [
            [
                "and",
                "func_seed_time",
                1440
            ]
        ],
        "testlabel": [
            [
                "and",
                "func_seed_time",
                2
            ]
        ]
    },
    "labels": [
        "seeding"
    ],
    "max_seeds": 500,
    "min": 60.0,
    "min2": 45.0,
    "remove": true,
    "remove_data": true,
    "rule_1_enabled": false,
    "rule_2_enabled": false,
    "sel_func": "and",
    "tracker_rules": {},
    "trackers": []
mhertz
Moderator
Moderator
Posts: 2216
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: [Plugin] Auto Remove Plus v2.0.0

Post by mhertz »

In bottom status tab there's a seed time field.

Plugin uses deluge's supplied api function to retrieve libtorrent seeding_time status for torrent, in which gtk-ui also makes use off in same way.

There is some issues with seeding not fully matching local VS tracker sometimes, our own resident autoremoveplus guy(and fork maintainer) basher previously found, and if not already, then recommend using his fork with some added meassures like force_reannounce if remember correct.
basher
Leecher
Leecher
Posts: 94
Joined: Wed Sep 29, 2021 8:42 am
Location: Estonia/Spain

Re: [Plugin] Auto Remove Plus v2.0.0

Post by basher »

CrowdIA wrote: Mon Aug 07, 2023 9:31 pm I just tested with a tag I created "labeltest" specifying the seedtime to 2. But 4 hours later my torrent still hasn't deleted. Here is my setup:
You have set max_seeds = 500, which means ARP won't start removing any torrents unless your total amount of torrents goes beyond that.

Most people keep that value at 0
Last edited by basher on Wed Aug 09, 2023 9:35 am, edited 1 time in total.
Post Reply