pt刷流
此次尝试是基于github上的这个项目, 还没有试过, 祝我好运吧
运行脚本
运行脚本后应该会看到类似这样的输出
因为我是第二次运行, 少了一些信息, 正常情况下还会有autobbr安装成功的信息, 在7474端口, 做好反代.
配置qBittorrent
修改语言为中文
取消勾选这两个
勾选这个
缓存设为-1
配置autobbr
添加clients
添加订阅(以byr.pt为例)
接下来添加一个过滤器filters
添加一个external用于检测剩余内存
#!/bin/sh
set -e
reqSpace=5000000 # 5GB
SPACE=$(df "/" | awk 'END{print $4}')
if [ "$SPACE" -le $reqSpace ]
then
echo "not enough space"
echo "free $SPACE"
exit 1
fi
echo "got space"
echo "free $SPACE"
exit 0
保存路径不能填root路径, Announce不清楚干嘛的, 我瞎填的
(后面不需要了, qb可以进行简单的设置)
配置autoremove-torrents
这个晚点补上
依照github的指示
sudo apt-get update
sudo apt-get install python3-pip
git clone https://github.com/jerrymakesjelly/autoremove-torrents.git
cd autoremove-torrents
python3 setup.py install
vim ./config.yml
设置定时任务
crontab -e
增加一条记录, 每15分钟执行一次
*/15 * * * * /usr/bin/autoremove-torrents --conf=/root/autoremove-torrents/config.yml --log=/root/autoremove-torrents/logs