hect0x7 / JMComic-Crawler-Python

Python API for JMComic | 提供Python API访问禁漫天堂,同时支持网页端和移动端 | 禁漫天堂GitHub Actions下载器🚀
https://jmcomic.readthedocs.io/zh-cn/latest/option_file_syntax/#
MIT License
791 stars 1.85k forks source link

v2.4.6: 实现对本子名称进行分词并提取原始名称;实现更便捷的自定义下载文件夹名机制、并跟进对应文档;内置一些更简洁的、可用作文件夹名… #172

Closed hect0x7 closed 10 months ago

hect0x7 commented 10 months ago

…的字段oname, idoname, authoroname.

Summary by CodeRabbit

coderabbitai[bot] commented 10 months ago

Walkthrough

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.

Changes

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. 🌟📁


Tips ### Chat with CodeRabbit Bot (`@coderabbitai`) - If you reply to a *review comment* from CodeRabbit, the bot will automatically respond. - To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment - Note: Review comments are made on code diffs or files, not on the PR overview. - Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. ### CodeRabbit Commands (invoked as PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger a review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai help` to get help. Note: For conversation with the bot, please use the review comments on code diffs or files. ### CodeRabbit Configration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - The JSON schema for the configuration file is available [here](https://coderabbit.ai/integrations/coderabbit-overrides.v2.json). - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json`