|
15 | 15 | # Method 3: Combined filtering (most flexible) |
16 | 16 | ktoolbox sync_creator --url="https://kemono.cr/fanbox/user/32165989" --keywords="ブルアカ" --keywords_exclude="全体公開,結果発表" |
17 | 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) |
18 | 29 | - Add **year/month** **grouping** functionality for post organization - #306 |
19 | 30 | - You can group downloaded posts by year and month with customizable directory naming formats |
20 | 31 | - New configuration options: |
|
26 | 37 | - Or manually edit them in `.env` file or environment variables |
27 | 38 | ```dotenv |
28 | 39 | # 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 |
31 | 42 | |
32 | 43 | # 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}" |
35 | 46 | ``` |
36 | 47 | Resulting directory structure: |
37 | 48 | ``` |
|
65 | 76 | # 方法3:组合筛选(最灵活) |
66 | 77 | ktoolbox sync_creator --url="https://kemono.cr/fanbox/user/32165989" --keywords="ブルアカ" --keywords_exclude="全体公開,結果発表" |
67 | 78 | ``` |
| 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) |
68 | 90 | - 新增按**年份/月**分组功能用于帖子整理 - #306 |
69 | 91 | - 可按年份和月份分组下载的帖子,支持自定义目录命名格式 |
70 | 92 | - 新配置项: |
|
75 | 97 | - 可通过运行 `ktoolbox config-editor` 编辑这些配置(`Job -> ...`) |
76 | 98 | - 或手动在 `.env` 文件或环境变量中编辑 |
77 | 99 | ```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 |
81 | 103 | |
82 | 104 | # 自定义目录命名 |
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}月" |
85 | 107 | ``` |
86 | 108 | 目录结构示例: |
87 | 109 | ``` |
|
0 commit comments