{ "archive_root": { "description": "归档根目录,建议填写 Komga 某个 library 的根目录;留空则使用插件数据目录。", "type": "string", "default": "" }, "archive_format": { "description": "归档格式,Komga 推荐 cbz,兼容原插件可选 pdf。", "type": "string", "default": "cbz", "options": ["cbz", "pdf"] }, "pdf_chunk_size": { "description": "生成 PDF 时每个临时 PDF 分块包含的图片数量,降低大本子转换时的内存占用。", "type": "int", "default": 80 }, "admin_only": { "description": "仅允许 AstrBot 管理员执行下载和扫描命令。", "type": "bool", "default": true }, "send_archive_file": { "description": "平台支持文件消息时,把生成的归档文件发送回聊天。", "type": "bool", "default": false }, "overwrite_existing": { "description": "目标归档已存在时是否覆盖。", "type": "bool", "default": false }, "delete_work_dir_after_archive": { "description": "归档成功后删除临时下载目录。", "type": "bool", "default": true }, "cleanup_retention_days": { "description": "手动清理临时目录时保留最近多少天的工作目录;设为 0 会清理全部历史工作目录。", "type": "int", "default": 7 }, "download_timeout_seconds": { "description": "单个下载任务的超时时间,单位秒。", "type": "int", "default": 3600 }, "download_retry_count": { "description": "下载失败或未发现图片时的重试次数。", "type": "int", "default": 2 }, "progress_interval_seconds": { "description": "下载进度提示间隔,单位秒;设为 0 可关闭进度提示。", "type": "int", "default": 30 }, "max_concurrent_tasks": { "description": "同时运行的下载任务数。建议保持 1,避免 JM 源站或本机资源压力过高。", "type": "int", "default": 1 }, "jm_batch_count": { "description": "jmcomic 图片下载批次大小。", "type": "int", "default": 20 }, "jm_domains": { "description": "jmcomic 域名列表,按优先级排序。", "type": "list", "default": [ "www.jmapiproxyxxx.vip", "www.18comic-mygo.vip", "18comic-MHWs.CC", "18comic.vip", "18comic.org" ] }, "komga": { "description": "Komga 联动配置。", "type": "object", "items": { "enabled": { "description": "归档后自动触发 Komga 扫描。", "type": "bool", "default": false }, "base_url": { "description": "Komga 服务地址,例如 http://127.0.0.1:25600。", "type": "string", "default": "" }, "library_id": { "description": "需要扫描的 Komga library ID。", "type": "string", "default": "" }, "username": { "description": "Komga Basic Auth 用户名。使用 API Key 时可留空。", "type": "string", "default": "" }, "password": { "description": "Komga Basic Auth 密码。", "type": "string", "default": "", "invisible": true }, "api_key": { "description": "Komga API Key,会作为 X-API-Key 请求头发送。", "type": "string", "default": "", "invisible": true }, "scan_timeout_seconds": { "description": "触发 Komga 扫描请求的超时时间,单位秒。", "type": "int", "default": 30 } } } }