jerrymakesjelly / autoremove-torrents

Automatically remove torrents according to your strategies.
https://pypi.org/project/autoremove-torrents/
MIT License
726 stars 120 forks source link

To remove torrents one by one then to check before to remove the next #150

Open amlopin opened 2 years ago

amlopin commented 2 years ago

Hi fellas, I would like to keep my server as full as possible. So my strategies are, to start removing when free space is less than 50GB. I would like to start removing big (more 20GiB) and old torrents then if there are nothing to remove. To start removing just old seeds.

The issue that I am facing is when removing big and old torrents, the tool removes all torrents bigger than 20 Gb.

Is it possible to remove one by one. I mean, to remove one torrent then to check if less than 50 Gb if the free space is more to wait until next check.

Does it make sense? Is it possible to make it?

It seems that it is not working well. What should I change? Many thanks

strategies: strategy1:
free_space: min: 50 path: /home/user/torrents/qbittorrent action: size > 20

strategies: strategy2:
free_space: min: 50 path: /home/user/torrents/qbittorrent action: remove-old-seeds

delete_data: true