# README
t-rss
t-rss是一个自动rss bt种子文件的程序,相比flexget丰富的功能,t-rss功能较为精简,同时体积更小、占用资源更少,支持自动将rss得到的种子文件添加至bt客户端(目前支持qBittorrent和Deluge(未完整测试过)),将来会加入从irc获取资源信息的功能(irc已经不想写了。)
从v0.6.x开始配置文件格式有所改变,与之前不再兼容,且v0.6.x的稳定性还未经历时间检验,建议一般用户使用v0.5.4beta版本,并且查看老版本的README来编写配置文件
https://github.com/capric98/t-rss/blob/d8b0c0be0acf251b7e24c183039dc61b39cce80c/README-zh_CN.md
安装
首先下载最新的pre-release or release中系统/架构对应的压缩包
解压后得到一个二进制文件,如果没有x属性自己加一下
写好配置文件直接运行就完了,命令行参数见-help
,此处略
配置
带*的部分是可省略不配置的,但receiver
部分需要至少配置一个不然程序跑完rss啥也不会干
config.yml(格式修改中)
GLOBAL:
log_file: # delete this to output log to stderr
history:
max_num: 300 # max history record nums
save_to: # default: ./.t-rss_History
timeout: 1m # {int}s/m/h/d
TASKS:
Name_of_task0:
rss:
url: https://example.com
method: GET #*delete this except you know what this means
headers: #*if needed
Cookie: something
Key: Value
interval: 10s # {int}s/m/h/d
filter:
content_size:
min: 10MB340KB
max: 120G10MB
regexp:
accept:
- A
reject:
- B
quota:
num: 65535
size: 100G
edit:
tracker:
delete:
- share
add:
- http(s)://example.com/
receiver:
delay: 12s
save_path: /home/WatchDir/
client:
Name_of_client0:
type: qBittorrent
url: http://127.0.0.1
username: admin
password: adminadmin
dlLimit:
upLimit:
paused: true
savepath: /home/Downloads
Name_of_client1:
type: Deluge
host: 127.0.0.1:1234
username:
password:
Name_of_task1:
rss:
url: https://example.com
receiver:
save_path: /home/WatchDir/
Name_of_task2:
rss:
url: https://example.com
receiver:
save_path: /home/WatchDir/
运行
在RSS目录下运行二进制文件即可,默认使用同目录下的config.yml作为配置文件,历史保留在同目录下的.t-rss_History
目录内;也可以nohup或者注册成服务什么的。。
TODO
- 重写client部分
- 重写/重新设计bencode部分
- 增加test覆盖率
# Packages
bep_0012: announce-list
bep_0030: Merkle hash torrent extension.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
WithConfigFile starts program using a config file.