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

254 行
8.3 KiB
JSON

此文件含有模棱两可的 Unicode 字符

此文件含有可能会与其他字符混淆的 Unicode 字符。 如果您是想特意这样的,可以安全地忽略该警告。 使用 Escape 按钮显示他们。

{
"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
},
"access_control": {
"description": "JMDownload 触发访问控制。黑名单优先;默认只有白名单中的群聊或私聊账号可以触发。",
"type": "object",
"items": {
"enabled": {
"description": "启用插件级白名单/黑名单。",
"type": "bool",
"default": true
},
"require_whitelist": {
"description": "是否要求命令来源必须命中白名单。默认开启;关闭后仅黑名单生效。",
"type": "bool",
"default": true
},
"allow_platform_ids": {
"description": "允许触发的 AstrBot 平台 ID 列表。命中后该平台全部群聊/私聊允许触发。",
"type": "list",
"default": []
},
"allow_self_ids": {
"description": "允许触发的机器人自身 ID 列表。OneBot v11 中是机器人 QQ 号;可写 123456 或 平台ID:123456。",
"type": "list",
"default": []
},
"allow_group_ids": {
"description": "允许触发的群聊 ID 列表。OneBot v11 使用群号;可写 123456 或 平台ID:123456。",
"type": "list",
"default": []
},
"allow_private_user_ids": {
"description": "允许触发的私聊账号 ID 列表。OneBot v11 使用 QQ 号;可写 123456 或 平台ID:123456。",
"type": "list",
"default": []
},
"allow_unified_origins": {
"description": "允许触发的完整 AstrBot UMO,例如 aiocqhttp:GroupMessage:123456 或 平台ID:FriendMessage:123456。",
"type": "list",
"default": []
},
"deny_platform_ids": {
"description": "禁止触发的 AstrBot 平台 ID 列表。黑名单优先于白名单。",
"type": "list",
"default": []
},
"deny_self_ids": {
"description": "禁止触发的机器人自身 ID 列表。OneBot v11 中是机器人 QQ 号;可写 123456 或 平台ID:123456。",
"type": "list",
"default": []
},
"deny_group_ids": {
"description": "禁止触发的群聊 ID 列表。可写 123456 或 平台ID:123456。",
"type": "list",
"default": []
},
"deny_private_user_ids": {
"description": "禁止触发的私聊账号 ID 列表。可写 123456 或 平台ID:123456。",
"type": "list",
"default": []
},
"deny_unified_origins": {
"description": "禁止触发的完整 AstrBot UMO。黑名单优先于白名单。",
"type": "list",
"default": []
},
"deny_message": {
"description": "拒绝触发时回复的文本。留空则静默拒绝。",
"type": "string",
"default": ""
}
}
},
"jm_proxy": {
"description": "JM 下载代理配置。",
"type": "object",
"items": {
"mode": {
"description": "代理模式:inherit=不写入配置,none=禁用代理,system=系统代理,clash/v2ray=jmcomic 内置快捷代理,custom=自定义代理。",
"type": "string",
"default": "inherit",
"options": ["inherit", "none", "system", "clash", "v2ray", "custom"]
},
"proxy_url": {
"description": "custom 模式下的统一代理,例如 127.0.0.1:7890 或 http://127.0.0.1:7890。",
"type": "string",
"default": ""
},
"http_proxy": {
"description": "custom 模式下单独指定 HTTP 代理;留空时使用 proxy_url。",
"type": "string",
"default": ""
},
"https_proxy": {
"description": "custom 模式下单独指定 HTTPS 代理;留空时使用 proxy_url。",
"type": "string",
"default": ""
}
}
},
"jm_login": {
"description": "可选 JM 账号密码登录配置。启用后下载前会调用 jmcomic 登录插件自动获取登录 Cookie。",
"type": "object",
"items": {
"enabled": {
"description": "启用 JM 账号密码登录。大部分本子不需要登录,受限内容再开启。",
"type": "bool",
"default": false
},
"username": {
"description": "JM 用户名。",
"type": "string",
"default": ""
},
"password": {
"description": "JM 密码。会写入本次下载的临时 jmcomic 配置,初始化后插件会尽量删除该临时配置文件。",
"type": "string",
"default": "",
"invisible": true
},
"impl": {
"description": "jmcomic 登录客户端实现。默认 api;如登录异常可尝试 html。",
"type": "string",
"default": "api",
"options": ["api", "html"]
}
}
},
"jm_avs_cookie": {
"description": "可选 JM 登录 Cookie,只填写 AVS 的值。大部分本子不需要登录,敏感题材可能需要。",
"type": "string",
"default": "",
"invisible": true
},
"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
}
}
}
}