-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from Ljzd-PRO/devel
Bump to v0.6.0
- Loading branch information
Showing
12 changed files
with
254 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,43 @@ | ||
## Changes | ||
|
||
[//]: # (### 💡 Feature) | ||
### 💡 Feature | ||
|
||
- Add support for filename allow-list/block-list to filter downloaded files. | ||
- Use Unix shell-style wildcards | ||
- Edit `KTOOLBOX_JOB__ALLOW_LIST`, `KTOOLBOX_JOB__BLOCK_LIST` in `prod.env` or environment variables to set this option | ||
- 📖More information: [Configuration-Reference-JobConfiguration](https://ktoolbox.readthedocs.io/latest/configuration/reference/#ktoolbox.configuration.JobConfiguration) | ||
```dotenv | ||
# Only download files that match these pattern | ||
KTOOLBOX_JOB__ALLOW_LIST=["*.jpg","*.jpeg","*.png"] | ||
# Not to download files that match these pattern | ||
KTOOLBOX_JOB__BLOCK_LIST=["*.psd"] | ||
``` | ||
- Default not to save `creator-indices.ktoolbox` (because it's useless now :( | ||
### 🪲 Fix | ||
- Fix `FileNotFoundError` occurred when filename contains special characters (#94) | ||
- Fix `TypeError` occurred when using `--start-time`, `--end-time` options and posts had no `published` property (#93) | ||
- Fixed incorrect argument order when using bucket storage (#89 - @Nacosia) | ||
- Duplicate file check after HTTP connection started (#88) | ||
- Fix missing `Post.file.name` may cause download file (`Post.file`) named to `None` | ||
- - - | ||
[//]: # (### 💡 新特性) | ||
### 💡 新特性 | ||
- 增加文件名白名单/黑名单支持以进行下载文件的过滤 | ||
- 使用 Unix 风格通配符 | ||
- 在 `prod.env` 或环境变量中编辑 `KTOOLBOX_JOB__POST_DIRNAME_FORMAT` 以设置该选项 | ||
- 📖更多信息: [Configuration-Reference-JobConfiguration](https://ktoolbox.readthedocs.io/latest/configuration/reference/#ktoolbox.configuration.JobConfiguration) | ||
```dotenv | ||
# 只下载匹配这些模式的文件 | ||
KTOOLBOX_JOB__ALLOW_LIST=["*.jpg","*.jpeg","*.png"] | ||
# 不下载匹配这些模式的文件 | ||
KTOOLBOX_JOB__BLOCK_LIST=["*.psd"] | ||
``` | ||
- 默认不保存 `creator-indices.ktoolbox` (因为它现在已经没什么用了 :( | ||
### 🪲 修复 | ||
- 修复当文件名包含特殊字符时会出现 `FileNotFoundError` 错误的问题 (#94) | ||
- 修复当使用 `--start-time`, `--end-time` 参数且作品 `published` 属性不存在的情况下会出现 `TypeError` 错误的问题 (#93) | ||
- 修复当使用桶储存时参数顺序不正确的问题 (#89 - @Nacosia) | ||
- 在建立 HTTP 连接后进行重复文件检查 (#88) | ||
- 修复缺失 `Post.file.name` 可能导致下载文件(`Post.file`)被命名为 `None` | ||
**Full Changelog**: https://github.com/Ljzd-PRO/KToolBox/compare/v0.5.1...v0.5.2 | ||
**Full Changelog**: https://github.com/Ljzd-PRO/KToolBox/compare/v0.5.2...v0.6.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__title__ = "KToolBox" | ||
# noinspection SpellCheckingInspection | ||
__description__ = "A useful CLI tool for downloading posts in Kemono.party / .su" | ||
__version__ = "0.5.2" | ||
__version__ = "0.6.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.