Closed hect0x7 closed 10 months ago
The update introduces a customizable directory naming feature for album downloads, allowing users to define folder structures via a new DirRule
. It adds custom field handling in the JmModuleConfig
class and updates properties and methods in jm_entity.py
to support this. The version bump to '2.4.6' reflects these enhancements, and changes in jm_option.py
and jm_toolkit.py
further support the new functionality.
File Path | Change Summary |
---|---|
assets/docs/.../9_custom_download_dir_name.md |
Introduced DirRule for custom folder structures and examples of usage. |
src/jmcomic/__init__.py |
Updated version number from '2.4.5' to '2.4.6'. |
src/jmcomic/jm_config.py |
Added custom fields AFIELD_ADVICE and PFIELD_ADVICE to JmModuleConfig . |
src/jmcomic/jm_entity.py |
Added properties for album naming and updated DetailEntity class for folder naming. |
src/jmcomic/jm_option.py |
Modified solve_func to use DetailEntity.get_dirname method. |
src/jmcomic/jm_toolkit.py |
Removed parse_to_abspath , added new methods and a bracket_map dictionary. |
🐇✨ In the burrow of code, a new feature hops in, Custom folders align, as the downloads begin. With a version bump, and a toolkit refresh, The rabbit's work shines, in the digital mesh. 🌟📁
…的字段oname, idoname, authoroname.
Summary by CodeRabbit
New Features
Enhancements
Documentation
Refactor
solve_func
accesses theget_dirname
method for consistency and maintainability.Bug Fixes
Chores
parse_to_abspath
method and added new utility methods for text processing.