-
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 #76 from Ljzd-PRO/devel
Bump to v0.5.0
- Loading branch information
Showing
20 changed files
with
722 additions
and
570 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,15 +1,61 @@ | ||
## Changes | ||
|
||
- Removed `--update-from` flag | ||
- Set `LoggerConfiguration.path` defaults to `None` (KToolBox will no longer output logs to files by default) | ||
- Fixed the issue where downloading files with the same name but different suffix simultaneously would fail. | ||
- Documents update (Coomer) | ||
### 🐍 Fix | ||
|
||
- Fixed download failure when server returns an invalid filename (`Attachment.name`) (#73) | ||
|
||
### 💡 Feature | ||
|
||
- Add support for local storage bucket mode (#74) (@Nacosia) | ||
- Edit `KTOOLBOX_DOWNLOADER__USE_BUCKET`, `KTOOLBOX_DOWNLOADER_BUCKET_PATH` in `prod.env` or environment variables to set this option | ||
- 📖More information: [Configuration-Reference-DownloaderConfiguration](https://ktoolbox.readthedocs.io/latest/configuration/reference/#ktoolbox.configuration.DownloaderConfiguration) | ||
|
||
- Add support for customizing the post directory name format (#45, #46) | ||
- Edit `KTOOLBOX_JOB__POST_DIRNAME_FORMAT` 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 | ||
# It will create directories like `[2024-1-1]HelloWorld` | ||
KTOOLBOX_JOB__POST_DIRNAME_FORMAT="[{published}]{title}" | ||
``` | ||
```dotenv | ||
# It will create directories like `2024-1-1_12345_112233` | ||
KTOOLBOX_JOB__POST_DIRNAME_FORMAT="{published}_{user}_{id}" | ||
``` | ||
```dotenv | ||
# Default value. It will create directories like `HelloWorld` | ||
KTOOLBOX_JOB__POST_DIRNAME_FORMAT="{title}" | ||
``` | ||
|
||
- Marked `JobConfiguration.post_id_as_path` as deprecated, use `JobConfiguration.post_dirname_format` instead | ||
|
||
- - - | ||
|
||
- 删除了 `--update-from` 标志 | ||
- 将 `LoggerConfiguration.path` 的默认值设置为 `None`(KToolBox 默认不再将日志输出到文件) | ||
- 修复了同时下载具有相同名称但不同后缀的文件会失败的问题。 | ||
- 文档更新(Coomer) | ||
### 🐍 修复 | ||
|
||
- 修复当服务器返回的文件名不合法时下载出错的问题 (`Attachment.name`) (#73) | ||
|
||
### 💡 新特性 | ||
|
||
- 增加本地存储桶模式的存储支持 (#74) (@Nacosia) | ||
- 在 `prod.env` 或环境变量中编辑 `KTOOLBOX_DOWNLOADER__USE_BUCKET`, `KTOOLBOX_DOWNLOADER_BUCKET_PATH` 以设置该选项 | ||
- 📖更多信息: [Configuration-Reference-DownloaderConfiguration](https://ktoolbox.readthedocs.io/latest/configuration/reference/#ktoolbox.configuration.DownloaderConfiguration) | ||
|
||
- 增加支持自定义作品目录名格式 (#45, #46) | ||
- 在 `prod.env` 或环境变量中编辑 `KTOOLBOX_JOB__POST_DIRNAME_FORMAT` 以设置该选项 | ||
- 📖更多信息: [Configuration-Reference-JobConfiguration](https://ktoolbox.readthedocs.io/latest/configuration/reference/#ktoolbox.configuration.JobConfiguration) | ||
```dotenv | ||
# 将会创建例如 `[2024-1-1]HelloWorld` 的目录名 | ||
KTOOLBOX_JOB__POST_DIRNAME_FORMAT="[{published}]{title}" | ||
``` | ||
```dotenv | ||
# 将会创建例如 `2024-1-1_12345_112233` 的目录名 | ||
KTOOLBOX_JOB__POST_DIRNAME_FORMAT="{published}_{user}_{id}" | ||
``` | ||
```dotenv | ||
# 默认值。 将会创建例如 `HelloWorld` 的目录名 | ||
KTOOLBOX_JOB__POST_DIRNAME_FORMAT="{title}" | ||
``` | ||
|
||
- 将 `JobConfiguration.post_id_as_path` 标记为已弃用, 请用 `JobConfiguration.post_dirname_format` 取代 | ||
|
||
**Full Changelog**: https://github.com/Ljzd-PRO/KToolBox/compare/v0.3.6...v0.4.0 | ||
**Full Changelog**: https://github.com/Ljzd-PRO/KToolBox/compare/v0.4.0...v0.5.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
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,16 +1,19 @@ | ||
# Download 10 files at the same time. | ||
KTOOLBOX_JOB__COUNT=10 | ||
|
||
# Allocate 102400 Bytes as buffer for each download job | ||
KTOOLBOX_DOWNLOADER__BUFFER_SIZE=102400 | ||
|
||
# Set post attachments directory path as `./`, it means to save all attachments files in post directory | ||
# without making a new sub directory to storage them | ||
KTOOLBOX_JOB__POST_STRUCTURE__ATTACHMENTS=./ | ||
|
||
# Rename attachments in numerical order, e.g. `1.png`, `2.png`, ... | ||
KTOOLBOX_JOB__SEQUENTIAL_FILENAME=True | ||
|
||
# Prefix the post directory name with its release/publish date, e.g. `[2024-1-1]HelloWorld` | ||
KTOOLBOX_JOB__POST_DIRNAME_FORMAT=[{published}]{title} | ||
|
||
# Allocate 102400 Bytes as buffer for each download job | ||
KTOOLBOX_DOWNLOADER__BUFFER_SIZE=102400 | ||
|
||
# Disable SSL certificate verification for Kemono API server and download server | ||
# It's useful when certificate on Kemono server expired. (SSL: CERTIFICATE_VERIFY_FAILED) | ||
KTOOLBOX_SSL_VERIFY=False | ||
|
||
# Rename attachments in numerical order, e.g. `1.png`, `2.png`, ... | ||
KTOOLBOX_JOB__SEQUENTIAL_FILENAME=True |
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.4.0" | ||
__version__ = "0.5.0" |
Oops, something went wrong.