Skip to content

Commit 8332c07

Browse files
committed
docs: update CHANGELOG.md with new configuration options for keywords filtering and exclusion
1 parent cb730cc commit 8332c07

File tree

1 file changed

+31
-9
lines changed

1 file changed

+31
-9
lines changed

CHANGELOG.md

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@
1515
# Method 3: Combined filtering (most flexible)
1616
ktoolbox sync_creator --url="https://kemono.cr/fanbox/user/32165989" --keywords="ブルアカ" --keywords_exclude="全体公開,結果発表"
1717
```
18+
- The `--keywords` and `--keywords-exclude` features for keyword filtering and exclusion can now also be set in the configuration
19+
- New configuration options:
20+
- `job.keywords`: Keyword filtering (default is empty)
21+
- `job.keywords_exclude`: Keyword exclusion (default is empty)
22+
- You can edit these configurations by running `ktoolbox config-editor` (`Job -> ...`)
23+
- Or manually edit them in the `.env` file or environment variables
24+
```dotenv
25+
KTOOLBOX_JOB__KEYWORDS='["expression", "sound effect variation"]'
26+
KTOOLBOX_JOB__KEYWORDS_EXCLUDE='["public", "result announcement"]'
27+
```
28+
- 📖More information: [Configuration-Reference-JobConfiguration](https://ktoolbox.readthedocs.io/latest/configuration/reference/#ktoolbox.configuration.JobConfiguration)
1829
- Add **year/month** **grouping** functionality for post organization - #306
1930
- You can group downloaded posts by year and month with customizable directory naming formats
2031
- New configuration options:
@@ -26,12 +37,12 @@
2637
- Or manually edit them in `.env` file or environment variables
2738
```dotenv
2839
# Environment variables (Defaults to False)
29-
export KTOOLBOX_JOB__GROUP_BY_YEAR=True
30-
export KTOOLBOX_JOB__GROUP_BY_MONTH=True
40+
KTOOLBOX_JOB__GROUP_BY_YEAR=True
41+
KTOOLBOX_JOB__GROUP_BY_MONTH=True
3142
3243
# Custom style naming
33-
export KTOOLBOX_JOB__YEAR_DIRNAME_FORMAT="Year {year}"
34-
export KTOOLBOX_JOB__MONTH_DIRNAME_FORMAT="Month {month:02d}"
44+
KTOOLBOX_JOB__YEAR_DIRNAME_FORMAT="Year {year}"
45+
KTOOLBOX_JOB__MONTH_DIRNAME_FORMAT="Month {month:02d}"
3546
```
3647
Resulting directory structure:
3748
```
@@ -65,6 +76,17 @@
6576
# 方法3:组合筛选(最灵活)
6677
ktoolbox sync_creator --url="https://kemono.cr/fanbox/user/32165989" --keywords="ブルアカ" --keywords_exclude="全体公開,結果発表"
6778
```
79+
- 关键词筛选和关键词排除的 `--keywords``--keywords-exclude` 功能现在也可以在配置中设置
80+
- 新配置项:
81+
- `job.keywords`:关键词筛选(默认为空)
82+
- `job.keywords_exclude`:关键词排除(默认为空)
83+
- 可通过运行 `ktoolbox config-editor` 编辑这些配置(`Job -> ...`
84+
- 或手动在 `.env` 文件或环境变量中编辑
85+
```dotenv
86+
KTOOLBOX_JOB__KEYWORDS='["表情", "効果音差分"]'
87+
KTOOLBOX_JOB__KEYWORDS_EXCLUDE='["全体公開", "結果発表"]'
88+
```
89+
- 📖更多信息:[配置参考-JobConfiguration](https://ktoolbox.readthedocs.io/latest/configuration/reference/#ktoolbox.configuration.JobConfiguration)
6890
- 新增按**年份/月**分组功能用于帖子整理 - #306
6991
- 可按年份和月份分组下载的帖子,支持自定义目录命名格式
7092
- 新配置项:
@@ -75,13 +97,13 @@
7597
- 可通过运行 `ktoolbox config-editor` 编辑这些配置(`Job -> ...`)
7698
- 或手动在 `.env` 文件或环境变量中编辑
7799
```dotenv
78-
# 环境变量(默认 False)
79-
export KTOOLBOX_JOB__GROUP_BY_YEAR=True
80-
export KTOOLBOX_JOB__GROUP_BY_MONTH=True
100+
# 是否启用(默认 False)
101+
KTOOLBOX_JOB__GROUP_BY_YEAR=True
102+
KTOOLBOX_JOB__GROUP_BY_MONTH=True
81103
82104
# 自定义目录命名
83-
export KTOOLBOX_JOB__YEAR_DIRNAME_FORMAT="{year}年"
84-
export KTOOLBOX_JOB__MONTH_DIRNAME_FORMAT="{month:02d}月"
105+
KTOOLBOX_JOB__YEAR_DIRNAME_FORMAT="{year}年"
106+
KTOOLBOX_JOB__MONTH_DIRNAME_FORMAT="{month:02d}月"
85107
```
86108
目录结构示例:
87109
```

0 commit comments

Comments
 (0)