11## Changes
22
3- ![ Downloads] ( https://img.shields.io/github/downloads/Ljzd-PRO/KToolBox/v0.18.2/total )
3+ ![ Downloads] ( https://img.shields.io/github/downloads/Ljzd-PRO/KToolBox/v0.19.0/total )
4+
5+ ### 💡 Feature
6+
7+ - Add ** ` --keywords-exclude ` ** parameter for post filtering - #309
8+ ``` shell
9+ # Method 1: Include only specific character posts
10+ ktoolbox sync_creator --url=" https://kemono.cr/fanbox/user/32165989" --keywords=" release"
11+
12+ # Method 2: Exclude unwanted character posts (OR logic)
13+ ktoolbox sync_creator --url=" https://kemono.cr/fanbox/user/32165989" --keywords_exclude=" announcement,vote,share"
14+
15+ # Method 3: Combined filtering (most flexible)
16+ ktoolbox sync_creator --url=" https://kemono.cr/fanbox/user/32165989" --keywords=" ブルアカ" --keywords_exclude=" 全体公開,結果発表"
17+ ```
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)
29+ - Add **year/month** **grouping** functionality for post organization - #306
30+ - You can group downloaded posts by year and month with customizable directory naming formats
31+ - New configuration options:
32+ - `job.group_by_year`: Enable grouping by year (Disabled by default)
33+ - `job.group_by_month`: Enable grouping by month (Disabled by default)
34+ - `job.year_month_format`: Customize the directory naming format for year grouping (Defaults to `{year}`)
35+ - `job.month_format`: Customize the directory naming format for month grouping (Defaults to `{year}-{month:02d}`)
36+ - Run `ktoolbox config-editor` to edit these configurations (`Job -> ...`)
37+ - Or manually edit them in `.env` file or environment variables
38+ ```dotenv
39+ # Environment variables (Defaults to False)
40+ KTOOLBOX_JOB__GROUP_BY_YEAR=True
41+ KTOOLBOX_JOB__GROUP_BY_MONTH=True
42+
43+ # Custom style naming
44+ KTOOLBOX_JOB__YEAR_DIRNAME_FORMAT="Year {year}"
45+ KTOOLBOX_JOB__MONTH_DIRNAME_FORMAT="Month {month:02d}"
46+ ```
47+ Resulting directory structure:
48+ ```
49+ creator/
50+ ├── Year 2020/
51+ │ ├── Month 01/
52+ │ │ └── post_title/
53+ │ └── Month 12/
54+ │ └── another_post/
55+ └── Year 2021/
56+ └── Month 03/
57+ └── latest_post/
58+ ```
59+ - 📖More information: [Configuration-Reference-JobConfiguration](https://ktoolbox.readthedocs.io/latest/configuration/reference/#ktoolbox.configuration.JobConfiguration)
460
5- [ // ] : # ( ### 💡 Feature )
661
762### 🪲 Fix
863
9- - Fixed the issue where ** warning messages** were displayed regardless of whether ** ` job.include_revisions ` ** was enabled or not.
10- - Fixed the issue where extracted external links contained extra characters (v0.18.0)
11- - Related configuration options: ` job.extract_external_links ` , ` job.external_link_patterns `
64+ - Fixed the issue where the `--keywords` parameter could not be parsed correctly in the `sync-creator` command
1265
1366- - -
1467
15- [ // ] : # ( ### 💡 新特性 )
68+ ### 💡 新特性
69+
70+ - 新增 **`--keywords-exclude`** 参数用于帖子筛选 - #309
71+ ```shell
72+ # 方法1:仅包含特定关键词的帖子
73+ ktoolbox sync_creator --url="https://kemono.cr/fanbox/user/32165989" --keywords="发布"
74+
75+ # 方法2:排除不需要的关键词帖子(或逻辑)
76+ ktoolbox sync_creator --url="https://kemono.cr/fanbox/user/32165989" --keywords_exclude="公告,投票,分享"
77+
78+ # 方法3:组合筛选(最灵活)
79+ ktoolbox sync_creator --url="https://kemono.cr/fanbox/user/32165989" --keywords="ブルアカ" --keywords_exclude="全体公開,結果発表"
80+ ```
81+ - 关键词筛选和关键词排除的 ` --keywords ` 和 ` --keywords-exclude ` 功能现在也可以在配置中设置
82+ - 新配置项:
83+ - ` job.keywords ` :关键词筛选(默认为空)
84+ - ` job.keywords_exclude ` :关键词排除(默认为空)
85+ - 可通过运行 ` ktoolbox config-editor ` 编辑这些配置(` Job -> ... ` )
86+ - 或手动在 ` .env ` 文件或环境变量中编辑
87+ ``` dotenv
88+ KTOOLBOX_JOB__KEYWORDS='["表情", "効果音差分"]'
89+ KTOOLBOX_JOB__KEYWORDS_EXCLUDE='["全体公開", "結果発表"]'
90+ ```
91+ - 📖更多信息:[配置参考-JobConfiguration](https://ktoolbox.readthedocs.io/latest/configuration/reference/#ktoolbox.configuration.JobConfiguration)
92+ - 新增按**年份/月**分组功能用于帖子整理 - #306
93+ - 可按年份和月份分组下载的帖子,支持自定义目录命名格式
94+ - 新配置项:
95+ - `job.group_by_year`:启用按年份分组(默认关闭)
96+ - `job.group_by_month`:启用按月份分组(默认关闭)
97+ - `job.year_month_format`:自定义年份分组目录命名格式(默认为 `{year}`)
98+ - `job.month_format`:自定义月份分组目录命名格式(默认为 `{year}-{month:02d}`)
99+ - 可通过运行 `ktoolbox config-editor` 编辑这些配置(`Job -> ...`)
100+ - 或手动在 `.env` 文件或环境变量中编辑
101+ ```dotenv
102+ # 是否启用(默认 False)
103+ KTOOLBOX_JOB__GROUP_BY_YEAR=True
104+ KTOOLBOX_JOB__GROUP_BY_MONTH=True
105+
106+ # 自定义目录命名
107+ KTOOLBOX_JOB__YEAR_DIRNAME_FORMAT="{year}年"
108+ KTOOLBOX_JOB__MONTH_DIRNAME_FORMAT="{month:02d}月"
109+ ```
110+ 目录结构示例:
111+ ```
112+ creator/
113+ ├── 2020年/
114+ │ ├── 01月/
115+ │ │ └── post_title/
116+ │ └── 12月/
117+ │ └── another_post/
118+ └── 2021年/
119+ └── 03月/
120+ └── latest_post/
121+ ```
122+ - 📖更多信息:[配置参考-JobConfiguration](https://ktoolbox.readthedocs.io/latest/configuration/reference/#ktoolbox.configuration.JobConfiguration)
16123
17124### 🪲 修复
18125
19- - 修复了无论是否开启 ** ` job.include_revisions ` ** 都会提示** 警告信息** 的问题
20- - 修复了程序提取的外部链接(external links)包含多余字符的问题 (v0.18.0)
21- - 相关配置选项:` job.extract_external_links ` , ` job.external_link_patterns `
126+ - 修复 `--keywords` 参数在 `sync-creator` 命令中无法正确解析的问题
22127
23128## Upgrade
24129
@@ -27,4 +132,4 @@ Use this command to upgrade if you are using **pipx**:
27132pipx upgrade ktoolbox
28133```
29134
30- ** Full Changelog** : https://github.com/Ljzd-PRO/KToolBox/compare/v0.18.1 ...v0.18.2
135+ ** Full Changelog** : https://github.com/Ljzd-PRO/KToolBox/compare/v0.18.2 ...v0.19.0
0 commit comments