Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config help: remove torrents above some ratio only until seed_size limit #158

Open
gennaios opened this issue Dec 1, 2022 · 1 comment

Comments

@gennaios
Copy link

gennaios commented Dec 1, 2022

Hi,

I'm trying to configure autoremove-torrents to limit torrents for a certain tracker to some seed_size. For such, are other criteria possible such as remove only if ratio or seed time above some interval?

I have the following config:

my_task:
  client: torrent_client_name
  host: http://127.0.0.1:port
  username: user
  password: pass
  strategies:
    strategy_tracker1:
      trackers:
        - tracker.url
      ratio: 1.1
      seed_size:
        limit: 500
        action: remove-active-seeds
      delete_data: true

I'd like to keep seeded torrents for that tracker at seed_size some limit. Yet when running it, it removes all torrents above specified ratio while ignoring the seed_size limit. Thus all torrents above some ratio are removed, as if seed_size has no effect when both are specified. I've tried remove: ratio > x and that didn't do it.

Assistance would be very helpful. Thanks.

@gennaios
Copy link
Author

gennaios commented Dec 2, 2022

I think I understand how it works.

What I'm hoping for is to limit seed_size to some number, and if above, remove only those with some conditions. Such as:

  strategies:
    strategy_tracker1:
      trackers:
        - tracker.url
      seed_size:
        limit: 850
        remove: ratio > 1.1
        action: remove-old-seeds # will this remove oldest first?
      delete_data: true

Seems like this is unsupported. Would it be possible to someday add the remove condition to seed_size, maximum_number, and free_space?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant