Skip to content

v0.5.0-beta.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 22 Mar 18:37
· 196 commits to master since this release

Changes

🐍 Fix

  • Fixed download failure when server returns an invalid filename (Attachment.name) (#73)

💡 Feature

  • Add support for local storage bucket mode (#74) (@Nacosia)

  • Add support for customizing the post directory name format (#45, #46)

    # It will create directories like `[2024-1-1]HelloWorld`
    KTOOLBOX_JOB__POST_DIRNAME_FORMAT="{published}{title}"
    # It will create directories like `[2024-1-1]_12345_112233`
    KTOOLBOX_JOB__POST_DIRNAME_FORMAT="{published}_{user}_{id}"
    # 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


🐍 修复

  • 修复当服务器返回的文件名不合法时下载出错的问题 (Attachment.name) (#73)

💡 新特性

  • 增加本地存储桶模式的存储支持 (#74) (@Nacosia)

  • 增加支持自定义作品目录名格式 (#45, #46)

    # 将会创建例如 `[2024-1-1]HelloWorld` 的目录名
    KTOOLBOX_JOB__POST_DIRNAME_FORMAT="{published}{title}"
    # 将会创建例如 `[2024-1-1]_12345_112233` 的目录名
    KTOOLBOX_JOB__POST_DIRNAME_FORMAT="{published}_{user}_{id}"
    # 默认值。 将会创建例如 `HelloWorld` 的目录名
    KTOOLBOX_JOB__POST_DIRNAME_FORMAT="{title}"
  • JobConfiguration.post_id_as_path 标记为已弃用, 请用 JobConfiguration.post_dirname_format 取代

Full Changelog: v0.4.0...v0.5.0-beta.1