Releases: Haoyi-Han/Moxmoe-Epub-Manga-Repacker
Releases · Haoyi-Han/Moxmoe-Epub-Manga-Repacker
Better Terminal Output
Changes
🚨 Breaking Changes
- Completely refactored terminal display for
convertcommand
🛠 Improvements
- Adjusted
typerinteraction function design - Optimized terminal display for
listandcleancommands
变更
🚨 重大变更
- 全面重构
convert命令的终端显示
🛠 改进
- 调整
typer交互函数设计 - 优化
list,clean命令的终端显示
Fixes on Unix-Like platforms
Changes
🐞 Bug Fixes
- Fixed vulnerability related to case-sensitive filenames on Unix-Like systems (#16)
- Resolved Issue #17
🛠 Improvements
- Added date display in log output
- Optimized color display for directory tree output in
listcommand - Improved handling logic for cache folder and output folder during program initialization
变更
🐞 漏洞修复
🛠 改进
- 日志输出支持显示日期
- 优化
list命令的目录树输出颜色显示 - 优化程序启动时对缓存文件夹和输出文件夹的处理逻辑
New Pretty Interface
Changes
🚨 Breaking Changes
- The command line interface has been completely refactored using
typer.
🚫 Deprecations
The following command line options are now deprecated: --input-dir, --output-dir, --cache-dir. Please update the corresponding parameters in config.toml if needed.
The following settings have moved and the previous name is deprecated: --list has been promoted to the list command, and --clean-all has been promoted to the clean --all command.
🐞 Bug Fixes
- Prompt user confirmation before clearing cache and output directories at program start (#15).
💼 Other Changes
- Bumped Python version for the release to 3.12.
变更
🚨 重大变更
- 命令行参数交互采用
typer完全重构
🚫 废弃
以下命令行选项现已废弃:--input-dir, --output-dir, --cache-dir,若有需要请修改 config.toml 中的相应参数。
以下设置已移动,先前的名称已废弃:--list 已升格为 list 命令,--clean-all 已升格为 clean --all 命令。
🐞 漏洞修复
- 程序启动时清空缓存目录和输出目录前询问用户确认(#15)
💼 其他变更
- 发行版的 Python 升级到 3.12 版本
Small Fixes
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
Changes
🐞 Bug Fixes
- Fixed an issue where using the external program
7zfor 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
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
7zto use relative paths by default, to prevent command length issues leading to failures. - Removed the default file path warning printed when calling the
7zenvironment variable, and replaced it with a more intelligent handling method.
Improvements
- Optimized the code formatting and module import order.
- If the specified
7zpath 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
Changes
New Features
- Added methods to call the external program
7z.exefor compression and decompression operations, significantly optimizing speed.
Bug Fixes
- Fixed some type annotations.
Configuration
- Added a switch option for the external program
7zin the configuration fileconfig.toml.
Documentation
- Modified the format description of
config.tomlinREADME.
变更
新特性
- 增加了调用外部程序
7z.exe进行压缩和解压缩操作的方法,速度得到明显优化
漏洞修复
- 修复了部分类型标记
配置
- 配置文件
config.toml中增加外部程序7z的开关选项
文档
- 修改了
README中涉及config.toml格式的描述
Better List Preview
Changes
New Features
- Use
--listto view a directory tree containing preview file names for comics without unpacking the EPUB document. - Added the
--keep-cacheparameter 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
--listparameter, 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_archivefunction 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
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
--listparameter for previewing the directory tree of the comics to be converted without actually performing the conversion. - Added the
--no-verboseparameter to disable all process outputs except for the logo and progress bar. - Added the
--no-progressparameter to disable the progress bar display. - Added the
--quietparameter to achieve silent conversion. Users can also use the combination of parameters-nl -np -nt -nvfor silent conversion.
变更
鉴于程序结构经某些重构后有较大改动,从本版本开始启用 v0.4.x 版本号。
漏洞修复
- 完全重构了主程序逻辑,以适应更多功能和参数适配
新特性
- 增加
--list参数,用于预览将被转换的漫画目录树,而不进行实际转换 - 增加
--no-verbose参数,用于关闭除 Logo 和进度条以外的所有过程输出 - 增加
--no-progress参数,用于关闭进度条显示 - 增加
--quiet参数,用于实现静默转换。用户也可以使用-nl -np -nt -nv组合参数实现静默转换
Fix upon renaming issue
Changes
Bug Fixes
- Fixed a comic name format mistake when renaming CBZ archives.
变更
漏洞修复
- 修复了一个重命名 CBZ 打包文件时的漫画名格式错误。