astrbot_plugin_jmdowloads/_conf_schema.json
2026-07-07 00:01:44 +08:00

92 行
2.5 KiB
JSON

{
"archive_root": {
"description": "归档根目录,建议填写 Komga 某个 library 的根目录;留空则使用插件数据目录。",
"type": "string",
"default": ""
},
"archive_format": {
"description": "归档格式,Komga 推荐 cbz,兼容原插件可选 pdf。",
"type": "string",
"default": "cbz",
"options": ["cbz", "pdf"]
},
"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
},
"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
}
}
}
}