-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.example.toml
101 lines (78 loc) · 2.19 KB
/
config.example.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# 多节点部属时每个node需要使用不同的值
node-id = 'dev-node-1'
http_proxy = "http://127.0.0.1:1080"
qb-url = "http://127.0.0.1:8080"
pg_host = '127.0.0.1'
pg_port = 5432
pg_user = '...'
pg_password = '...'
target-website = 'ssd'
max-single-torrent-size = '20GiB'
max-processing-size = '100GiB'
max-processing-per-node = 4
tmdb-api-token = '...'
data-dir = './data'
debug = false
includes = [
]
# 跳过 1h 之前发布的种子
# 支持的格式参照 https://pkg.go.dev/time#example-ParseDuration
# 删除此项则禁用按照发布时间筛选种子。
recent-release = '1h'
excludes = [
'(?i)\b(dovi|DV|Dolby Vision)\b',
'(?i)\b720p\b',
'(?i)\bDragon Ball DAIMA\b',
'(?i)\b(TX|iQIYI|KKTV|YOUKU|HAMi)\b',
# '\bDoVi\b',
# '\bDV\b',
'(?i)\b1080p\b.*\b(x|h)265\b',
'(?i)-cmct$',
'(?i)-cmctv$',
]
# 多节点部属时后启动的节点会覆盖之前的设置。
# 需要保持所有的节点设置相同,或者保证只有一个节点设置了这一项,其他节点留空。
[[rss]]
url = "..."
# 抓取的时间间隔,默认30分钟
# 支持的格式参照 https://pkg.go.dev/time#example-ParseDuration
interval = "30m"
# 禁转的 rss 链接,可以留空
# exclude_url = "..."
# 用于判断多条 rss 是否属于同一个网站。
# 可以任意填写,但是需要保证同一个网站的所有 rss 均使用相同的值。
website = "..."
# 正则,每个组内的是 “且” 关系,不同的组之间是 “或” 关系。
#
# 比如,以下的例子会下载所有的 hhweb 的 netflix/amazon Web-DL 和所有的 cmct 的种子。
# includes = [
# [ '(?i)\bWEB-DL\b', '(?i)\b(netflix|amzn)\b','(?i)-hhweb$', ],
# [ '(?i)-cmct', ],
#]
includes = [
[
'(?i)\bWEB-DL\b',
'(?i)\b(nf|netflix|amzn|ATVP|DSNP)\b',
'(?i)-(mweb|hhweb)$',
]
]
# 正则
excludes = [
'(?i)\b720p\b',
]
# 多条 rss 在下面重复
[[rss]]
url = "..."
interval = "..."
website = "..."
exclude_url = "..."
includes = []
excludes = []
[images]
cmct_api_token = '...'
[website.ssd]
passkey = '...'
# 比如设置 cookies 或者 api-token
# 如果两个都设置了,会优先使用 api token
api-token = '...'
cookies = '...'