Skip to content

Releases: Haoyi-Han/Moxmoe-Epub-Manga-Repacker

Small Fixes

05 May 11:31
Compare
Choose a tag to compare

Changes

🐞 Bug Fixes

  • Fixed a regular expression error.
  • The program no longer automatically exits after clearing the cache in the presence of files that failed to convert. Instead, it now waits for user confirmation so that users can record the names of the files that failed to convert.

变更

🐞 漏洞修复

  • 修复了一个正则表达式错误
  • 使程序在存在转换失败的文件时,不在清理缓存后自动退出,而是等待用户确认,以便用户记录转换失败的文件名称

Fixed 7z longpath issue

07 Apr 08:16
Compare
Choose a tag to compare

Changes

🐞 Bug Fixes

  • Fixed an issue where using the external program 7z for compression would result in a command line error due to excessively long paths. This was addressed by changing from adding files one by one to adding the entire folder.

🛠 Improvements

  • Improved the regular expression used for extracting original comic information.

变更

🐞 漏洞修复

  • 修复了在使用外部程序 7z 压缩时,过长路径引起的 7z 命令行错误,将逐个添加文件改为添加整个文件夹解决了这一问题

🛠 改进

  • 改进了漫画原信息提取时的正则表达式

No longer break when failure occurs

29 Feb 08:39
Compare
Choose a tag to compare

Changes

Bug Fixes

  • Fixed the issue where the volume number might not be a number when extracting comic information.
  • Changed the default addition of the path of the file to be compressed using the external program 7z to use relative paths by default, to prevent command length issues leading to failures.
  • Removed the default file path warning printed when calling the 7z environment variable, and replaced it with a more intelligent handling method.

Improvements

  • Optimized the code formatting and module import order.
  • If the specified 7z path or alias is invalid or does not exist, a warning will be printed, and the program will automatically switch to using the default Python module to handle archives.
  • Forced the program to continue converting the next file if a single file conversion fails, instead of breaking the procedure.
  • After all conversions are completed, a list of files that failed to convert will be printed.

变更

漏洞修复

  • 修复了提取漫画信息时卷数可能为非数字的情形
  • 设定使用外部程序 7z 时添加待压缩文件的默认路径为相对路径,以防止命令过长而运行失败
  • 移除了调用 7z 环境变量时程序默认打印的文件路径警告,改为更智能的处理方式

改进

  • 优化了代码格式和模块导入顺序
  • 若设定的 7z 路径或别称不合法或不存在,则打印警告并自动改用 Python 默认模块处理压缩文档
  • 单个文件转换失败时,由中止程序改为继续转换下一个文件
  • 全部转换结束后,若有转换失败的文件则打印其列表

External 7z Support

15 Feb 13:47
Compare
Choose a tag to compare

Changes

New Features

  • Added methods to call the external program 7z.exe for compression and decompression operations, significantly optimizing speed.

Bug Fixes

  • Fixed some type annotations.

Configuration

  • Added a switch option for the external program 7z in the configuration file config.toml.

Documentation

  • Modified the format description of config.toml in README.

变更

新特性

  • 增加了调用外部程序 7z.exe 进行压缩和解压缩操作的方法,速度得到明显优化

漏洞修复

  • 修复了部分类型标记

配置

  • 配置文件 config.toml 中增加外部程序 7z 的开关选项

文档

  • 修改了 README 中涉及 config.toml 格式的描述

Better List Preview

02 Feb 09:27
Compare
Choose a tag to compare

Changes

New Features

  • Use --list to view a directory tree containing preview file names for comics without unpacking the EPUB document.
  • Added the --keep-cache parameter to preserve the cache folder when the program exits.

Bug Fixes

  • Fixed an issue where EPUB documents were unpacked into an extra nested folder in the cache directory.
  • Removed the logic restriction of still needing to unpack EPUB documents when adding the --list parameter, reducing the time overhead for loading previews.

Improvements

  • Adjusted method execution order to pre-read the description file inside the EPUB document before unpacking.
  • Modified the unpack_archive function parameters to unpack only necessary files, reducing the cache size.
  • Moved some sub-methods of the main program.

变更

新特性

  • 无需解压 EPUB 文档即可通过 --list 查看包含漫画文件名预览的目录树。
  • 增加 --keep-cache 参数,用于在程序退出时保留缓存文件夹。

漏洞修复

  • 修复了 EPUB 文档解压到缓存文件夹时多一层文件夹嵌套的问题。
  • 去除了添加 --list 参数时仍需要解压 EPUB 文档的逻辑限制,减少加载预览的时间损耗。

改进

  • 调整方法执行顺序,解压前预先读取 EPUB 文档内的描述文件。
  • 调整 unpack_archive 函数参数,仅解压必要的文件,减少缓存大小。
  • 移动了主程序的部分子方法。

List preview & Silent mode

01 Feb 13:48
Compare
Choose a tag to compare

Changes

We have updated the version to v0.4.x due to significant code refactoring that has substantially altered the program's structure.

Bug Fixes

  • Completely refactored the main program logic to adapt to more features and parameter adaptations.

New Features

  • Added the --list parameter for previewing the directory tree of the comics to be converted without actually performing the conversion.
  • Added the --no-verbose parameter to disable all process outputs except for the logo and progress bar.
  • Added the --no-progress parameter to disable the progress bar display.
  • Added the --quiet parameter to achieve silent conversion. Users can also use the combination of parameters -nl -np -nt -nv for silent conversion.

变更

鉴于程序结构经某些重构后有较大改动,从本版本开始启用 v0.4.x 版本号。

漏洞修复

  • 完全重构了主程序逻辑,以适应更多功能和参数适配

新特性

  • 增加 --list 参数,用于预览将被转换的漫画目录树,而不进行实际转换
  • 增加 --no-verbose 参数,用于关闭除 Logo 和进度条以外的所有过程输出
  • 增加 --no-progress 参数,用于关闭进度条显示
  • 增加 --quiet 参数,用于实现静默转换。用户也可以使用 -nl -np -nt -nv 组合参数实现静默转换

Fix upon renaming issue

29 Jan 14:53
Compare
Choose a tag to compare

Changes

Bug Fixes

  • Fixed a comic name format mistake when renaming CBZ archives.

变更

漏洞修复

  • 修复了一个重命名 CBZ 打包文件时的漫画名格式错误。

Maybe Time for Version Update

26 Jan 09:11
Compare
Choose a tag to compare

Changes

We have updated the version to v0.2.x due to significant code refactoring that has substantially altered the program's structure.

Bug Fixes

  • Fixed the FileNotFound issue that occurred when converting EPUB documents in nested directories to CBZ documents.
  • Adjusted and simplified the code logic of the pack_folder function.

变更

鉴于程序结构经某些重构后有较大改动,从本版本开始启用 v0.2.x 版本号。

漏洞修复

  • 修复了多层目录下的 EPUB 文档转换到 CBZ 文档时出现的 FileNotFound 问题。
  • 调整和简化了打包函数的代码逻辑。

Better Archive Operations

24 Jan 08:43
Compare
Choose a tag to compare

New Features

  • Replace shutil.make_archive() with the thread-safe make_archive() function
  • Replace shutil.unpack_archive() with the unpack_archive() function that preserves file timestamps
  • CBZ documents generated will maintain the original timestamps of images within EPUB documents

新特性

  • 采用线程安全的 make_archive() 函数替代 shutil.make_archive()
  • 采用保留文件时间戳的 unpack_archive() 函数替代 shutil.unpack_archive()
  • 生成的漫画 CBZ 文档将与 EPUB 文档内部图片的原始时间戳保持一致

Safe check & switches

14 Jan 12:08
Compare
Choose a tag to compare

Bug Fixes

  • Added security checks for generating ComicInfo.xml configuration files to be compatible with older versions of comic documents

New Features

  • Added program logo and taskbar special effects switch to improve running speed; the tl.tlb is no longer a necessary runtime library during program execution, and is only used to support taskbar special effects

漏洞修复

  • 增加 ComicInfo.xml 配置文件生成时的安全检查以兼容老版本漫画文档

新特性

  • 增加程序 Logo 及任务栏特效开关以提升运行速度,程序运行时 tl.tlb 已不再是必要运行库,仅用于支持任务栏特效