post_process
Convert downloaded manga albums into ZIP, PDF, or long image formats. Provide the album ID and process type, with optional output rules, to generate files at your chosen location.
Instructions
对已下载的本子进行后处理(生成 Zip、PDF 或长图)。
参数:
album_id: 要处理的本子 ID。
process_type: 后处理类型,可选值为 "zip", "img2pdf", "long_img"。
params: 后处理参数字典。支持:
- dir_rule: 输出路径规则。格式: {"rule": "Bd/{Atitle}.zip", "base_dir": "D:/Comics"}。
- delete_original_file: 布尔值,处理完成后是否删除原始文件。
返回: 包含以下内容的字典: - status: "success" 或 "error" - process_type: 后处理类型 - album_id: 本子 ID - output_path: 输出文件/目录的绝对路径 - output_paths: 插件实际生成的全部文件绝对路径 - is_directory: 输出是否为目录 - message: 成功或错误消息
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | ||
| album_id | Yes | ||
| process_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||