介绍
这个程序是一个可以帮助您自动删除种子的工具。现在,你不再需要担心你的磁盘空间——根据你的策略,程序可以检查每个种子是否满足删除条件;如果是,那就自动删掉它。
支持的客户端
qBittorrent/Transmission/μTorrent/Deluge
安装与运行
安装
有两个方法可以安装 autoremove-torrents。强烈推荐使用pip安装。
从 pip 安装
pip install autoremove-torrents
从 GitHub 安装
git clone https://github.com/jerrymakesjelly/autoremove-torrents.git
cd autoremove-torrents
python3 setup.py install
autoremove-torrents -v -c /home/myserver/autoremove-torrents/config.yml
my_task:
client: qbittorrent
host: http://localhost:15199
username: username
password: psssword
strategies:
delete_by_restspace:
free_space:
min: 50
path: /home/master/torrents/qbittorrent/
action: remove-slow-upload-seeds
delete_by_size:
remove: size > 800
delete_by_ratio:
status:
- Uploading
excluded_trackers:
- hdroute.org
remove: ratio > 3 or (seeding_time > 14400 and upload_speed < 30)
delete_data: true
更多参数和使用方法参考:https://autoremove-torrents.readthedocs.io/zh-cn/latest/config.html
卸载
通过 pip 卸载
如果你的 autoremove-torrents 是通过 pip 安装的,你就可以用 pip 简单地卸载掉它:
pip uninstall autoremove-torrents
手动卸载
然而,如果你的 autoremove-torrents 是通过 setup.py 安装的,你需要手动地删除所有的文件。
第一步
cd autoremove-torrents
python3 setup.py install --record files.txt
第三步
用 xargs 去删除文件:
cat files.txt | xargs rm -rf
或者,如果你在用 Windows,可以使用 Powershell:
Get-Content files.txt | ForEach-Object {Remove-Item $_ -Recurse -Force}