-
Notifications
You must be signed in to change notification settings - Fork 71
/
biu_default.yml
132 lines (107 loc) · 4.35 KB
/
biu_default.yml
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# You can find the default config files
# of multiple languages (中文, English, 日本語, Español)
# at https://github.com/txperl/PixivBiu/tree/master/app/config
## 系统相关 ##
sys.host: "127.0.0.1:4001"
# 程序运行的地址,如果不是很懂请不要修改
# 不可带有 http:// 前缀
sys.debug: false
# 调试模式
# true 为开启;false 为关闭
sys.apiRoute: "direct"
# 默认 API 线路
# 如果能直接访问 Pixiv,请选择 "direct"
# direct: 稳定
# bypassSNI: 稳定性差,不推荐
sys.proxy: ""
# 本地代理服务监听地址
# 如 http://127.0.0.1:1080/
# 留空则程序会自动检测系统代理设置(仅 Windows、macOS)
# 填入 no 则不使用任何代理
sys.language: ""
# 语言设置,留空为程序自动判断
# 可选:zh、en、es
sys.theme: "multiverse"
# 默认主题
# 暂无其他,请保持默认为 multiverse
sys.autoOpen: true
# 启动后是否自动打开程序运行网址
# true 为开启;false 为关闭
sys.ignoreOutdated: false
# 启动时是否禁用新版本提示
# true 为开启;false 为关闭
## 搜索相关 ##
biu.search.maxThreads: 8
# 搜索池最大线程数
biu.search.loadCacheFirst: true
# 搜索时优先加载本地缓存
# true 为开启;false 为关闭
biu.search.maxCacheSizeMiB: 512
# 搜索缓存的最大容量(MB),达到后程序会自动清理
## 下载相关 ##
biu.download.mode: "dl-single"
# 下载模式
# dl-single: 程序单线程下载
# aria2: 使用 aria2 下载,如果启用此项,还需填写下方的 aria2Host、aria2Secret
biu.download.aria2Host: ""
# aria2 RPC 监听地址,如 localhost:6800
# 下载时 dir, out, all-proxy, max-tries, check-certificate 配置项会由程序决定
# 其余均为默认或自定义内容
biu.download.aria2Secret: ""
# aria2 RPC 密钥,如未设置请留空
biu.download.deterPaths: true
# 程序动态决定文件名
# 启用后,程序会先以随机名称保存图片,后更改为下方自定义的 {saveFileName} 文件名
# 此过程中,如果存在文件名相同的文件,则程序会自动判断它们是否为同一张图片
# 若是,则只保留一份
# 若不是,则自动将新图片重命名为 {saveFileName}_{hash} 或 {saveFileName}_{hash}_{time} 格式
# 停用后,程序会直接将图片保存为 {saveFileName} 文件名
# 若 {saveFileName} 格式存在唯一性,或欲使用 aria2 的重名文件策略,可将此功能关闭以提升性能
# 若 aria2 服务地址并非 localhost 或 127.0.0.1 时,程序会自动禁用此项
# true 为开启;false 为关闭
biu.download.maxDownloading: 8
# 最大同时下载任务数
biu.download.saveURI: "{ROOTPATH}/downloads/{date_today}/"
# 下载文件夹路径,以 / 结尾
# 不可使用 \ 符号,请将其替换为 / 或 \\
# 可选变量
# - {ROOTPATH}: 程序根目录
# - {HOMEPATH}: 用户主目录,可能为 /Users/user/、C:/Users/user/、/home/user/
# - {KT}: 搜索关键词
# - {title}: 作品标题
# - {work_id}: 作品 ID
# - {user_name}: 作者名称
# - {user_id}: 作者 ID
# - {type}: 作品类型
# - {date_image}: 作品日期
# - {date_today}: 当天日期
biu.download.saveFileName: "{title}_{work_id}"
# 下载图片的标题
# 不可使用 \ 符号,请将其替换为 \\
# 可选变量
# - {title}: 作品标题
# - {work_id}: 作品 ID
# - {user_name}: 作者名称
# - {user_id}: 作者 ID
# - {type}: 作品类型
# - {date_image}: 作品日期
# - {date_today}: 当天日期
biu.download.autoArchive: true
# 自动将拥有多张图片的作品归档(放入一个文件夹中)
# true 为开启;false 为关闭
biu.download.whatsUgoira: "webp"
# 将动图转换为指定格式
# 可选 webp, gif
biu.download.imageHost: ""
# 后端程序下载时使用的 Pixiv 图片服务器
# 留空则程序自动判断
# 可参考地址
# - https://i.pximg.net 官方图片服务器(需代理)
# - https://i.pixiv.cat 第三方反代图片服务器(需代理)
# - https://i.pixiv.re 第三方反代图片服务器(无需代理)
# 私密
secret.key.apiSauceNAO: ""
# SauceNAO 服务的 API Key
# 若填写则可使用图片搜索功能
# https://saucenao.com/user.php?page=search-api
# 进入以上网址登录后,即可在页面上找到「api key」内容