By modifying project: https://github.com/jerrymakesjelly/autoremove-torrents
pip install pyyaml
pip install bottle
pip install requests
...
That's all. It's a simple but smart program.
git clone https://github.com/harleybai/autoremove-torrents.git
cd autoremove-torrents
In order to satisfactory your needs, you have to learn how to write a configuration file.
more config to visit config.yml
Example:
my_task:
client: qbittorrent
host: http://127.0.0.1
username: admin
password: adminadmin
strategies:
my_strategy:
categories:
- IPT
seeding_time: 1209600
ratio: 1
delete_data: true
autoremove-torrents [-v] [-c=configfilepath] [-t=taskname]
-v : not delete torrent or data, for viewing result
-c : the path of config.yml, default for current directory
-t : taskname, one config.yml can contain many task config, you can choose one task to run