astrbot_plugin_jmdowloads/_conf_schema.json

118 行
3.3 KiB
JSON

2026-07-07 00:01:44 +08:00
{
"archive_root": {
"description": "归档根目录,建议填写 Komga 某个 library 的根目录;留空则使用插件数据目录。",
"type": "string",
"default": ""
},
"archive_format": {
"description": "归档格式,Komga 推荐 cbz,兼容原插件可选 pdf。",
"type": "string",
"default": "cbz",
"options": ["cbz", "pdf"]
},
2026-07-07 00:28:06 +08:00
"pdf_chunk_size": {
"description": "生成 PDF 时每个临时 PDF 分块包含的图片数量,降低大本子转换时的内存占用。",
"type": "int",
"default": 80
},
2026-07-07 00:01:44 +08:00
"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
},
"download_timeout_seconds": {
"description": "单个下载任务的超时时间,单位秒。",
"type": "int",
"default": 3600
},
2026-07-07 00:13:26 +08:00
"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
},
2026-07-07 00:01:44 +08:00
"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
2026-07-07 00:19:34 +08:00
},
"scan_timeout_seconds": {
"description": "触发 Komga 扫描请求的超时时间,单位秒。",
"type": "int",
"default": 30
2026-07-07 00:01:44 +08:00
}
}
}
}