Sign inSign up

zhongyw/qbtools

By zhongyw

Updated about 3 years ago

pt刷流工具。只需要qb

Image
0

2.1K

zhongyw/qbtools repository overview

qbtools

个人用于PT刷流。集成QB官方API。自动拆包。自动优化排序删除末位种子。

Features

  • The entire qBittorrent Web API is implemented.
  • qBittorrent version checking for an endpoint's existence/features is automatically handled.
  • All Python versions are supported.
  • If the authentication cookie expires, a new one is automatically requested in line with any API call.

Run (Docker Hub)

docker使用

映射两个文件。
/qbtools/config.ini

这个是配置基础拆包设置

; config.ini
;qb是需要拆包的qb的ip,端口,账号,密码
[qb]
host = 127.0.0.1
port = 8080
username = admin
password = admin

;拆包配置。
[partpackage]
;raite:拆包比例
raite = 0.15
;min_size:拆包后最小是多少G
min_size = 5
;max_size:拆包后最大多少G
max_size = 10
;single_file_size: single_file_category设置的分类小于single_file_size时,不拆包
;single_file_size和single_file_category非必填.
;single_file_category a,b,c为qb里的分类
single_file_size = 10
single_file_category = a,b,c
;限速(M)
upspeed = 90
dlspeed = 90
limit_category = a,b,c

;删种配置(两个参数都是必填)
[removetorrents]
;free_size:系统还剩多少空间(G)。开始删种(根据上传速度,上传连接数,下载连接数 三个因素排序,选出最差的种子删除)
free_size = 30
;deletenum:一次删几个
deletenum = 3

[iyuu]
token = ''
/qbtools/mycron

这个文件是执行计划任务

* * * * * root /usr/bin/php -f /execute.php method=partpackage >> /var/log/cron.log
*/3 * * * * root /usr/bin/php -f /execute.php method=autoRemoveTorrents >> /var/log/cron.log
如何运行
docker run -d -v /qbtools/config.ini:/config/config.ini -v /qbtools/mycron:/etc/cron.d/mycron zhongyw/qbtools:latest
查看日志
查看docker运行列表
docker ps -a
查看日志
docker logs -f <container_id>
如果需要修改配置文件。修改之后。需要重启docker
docker restart <container_id>

github:https://github.com/z594lh/qbtools

Tag summary

Content type

Image

Digest

sha256:bb406a792

Size

168.8 MB

Last updated

about 3 years ago

docker pull zhongyw/qbtools