BililiveRecorder/configV2.schema.json

593 lines
18 KiB
JSON
Raw Normal View History

2021-07-15 21:41:21 +08:00
{
"$comment": "GENERATED CODE, DO NOT EDIT MANUALLY.",
"$schema": "http://json-schema.org/schema",
"definitions": {
"global-config": {
2021-08-13 21:03:21 +08:00
"description": "全局设置",
2021-07-15 21:41:21 +08:00
"additionalProperties": false,
"properties": {
2021-08-13 21:03:21 +08:00
"RecordFilenameFormat": {
"description": "录制文件名格式\n默认: {roomid}-{name}/录制-{roomid}-{date}-{time}-{ms}-{title}.flv",
"markdownDescription": "录制文件名格式 \n默认: `{roomid}-{name}/录制-{roomid}-{date}-{time}-{ms}-{title}.flv `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
2021-08-13 21:03:21 +08:00
"type": "string",
"default": "{roomid}-{name}/录制-{roomid}-{date}-{time}-{ms}-{title}.flv"
2021-07-15 21:41:21 +08:00
}
}
},
2021-08-13 21:03:21 +08:00
"WebHookUrls": {
"description": "WebhookV1\n默认: ",
"markdownDescription": "WebhookV1 \n默认: ` `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
2021-08-13 21:03:21 +08:00
"type": "string",
"default": ""
2021-07-15 21:41:21 +08:00
}
}
},
2021-08-13 21:03:21 +08:00
"WebHookUrlsV2": {
"description": "WebhookV2\n默认: ",
"markdownDescription": "WebhookV2 \n默认: ` `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
2021-08-13 21:03:21 +08:00
"type": "string",
"default": ""
2021-07-15 21:41:21 +08:00
}
}
},
2021-08-13 21:03:21 +08:00
"WpfShowTitleAndArea": {
"description": "在界面显示标题和分区\n默认: true",
"markdownDescription": "在界面显示标题和分区 \n默认: `true `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
2021-08-13 21:03:21 +08:00
"type": "boolean",
"default": true
2021-07-15 21:41:21 +08:00
}
}
},
2021-08-13 21:03:21 +08:00
"Cookie": {
"description": "请求 API 时使用的 Cookie\n默认: (空字符串)",
"markdownDescription": "请求 API 时使用的 Cookie \n默认: `(空字符串) `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
2021-08-13 21:03:21 +08:00
"type": "string",
"pattern": "^(S+=S+;? ?)*$",
"maxLength": 4096
2021-07-15 21:41:21 +08:00
}
}
},
2021-08-13 21:03:21 +08:00
"LiveApiHost": {
"description": "请求的 API Host\n默认: https://api.live.bilibili.com",
"markdownDescription": "请求的 API Host \n默认: `https://api.live.bilibili.com `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
2021-08-13 21:03:21 +08:00
"type": "string",
"default": "https://api.live.bilibili.com"
2021-07-15 21:41:21 +08:00
}
}
},
2021-08-13 21:03:21 +08:00
"TimingCheckInterval": {
"description": "HTTP API 检查时间间隔 秒\n默认: 600 (10分)",
"markdownDescription": "HTTP API 检查时间间隔 秒 \n默认: `600 (10分) `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
2021-08-13 21:03:21 +08:00
"type": "integer",
"minimum": 0,
"maximum": 4294967295,
"default": 600
2021-07-15 21:41:21 +08:00
}
}
},
2021-08-13 21:03:21 +08:00
"TimingStreamRetry": {
"description": "录制断开重连时间间隔 毫秒\n默认: 6000 (6秒)",
"markdownDescription": "录制断开重连时间间隔 毫秒 \n默认: `6000 (6秒) `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
2021-08-13 21:03:21 +08:00
"type": "integer",
"minimum": 0,
"maximum": 4294967295,
"default": 6000
2021-07-15 21:41:21 +08:00
}
}
},
2021-08-13 21:03:21 +08:00
"TimingStreamConnect": {
"description": "连接直播服务器超时时间 毫秒\n默认: 5000 (5秒)",
"markdownDescription": "连接直播服务器超时时间 毫秒 \n默认: `5000 (5秒) `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
2021-08-13 21:03:21 +08:00
"type": "integer",
"minimum": 0,
"maximum": 4294967295,
"default": 5000
2021-07-15 21:41:21 +08:00
}
}
},
2021-08-13 21:03:21 +08:00
"TimingDanmakuRetry": {
"description": "弹幕服务器重连时间间隔 毫秒\n默认: 9000 (9秒)",
"markdownDescription": "弹幕服务器重连时间间隔 毫秒 \n默认: `9000 (9秒) `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
2021-08-13 21:03:21 +08:00
"type": "integer",
"minimum": 0,
"maximum": 4294967295,
"default": 9000
2021-07-15 21:41:21 +08:00
}
}
},
2021-08-13 21:03:21 +08:00
"TimingWatchdogTimeout": {
"description": "最大允许未收到直播数据时间 毫秒\n默认: 10000 (10秒)",
"markdownDescription": "最大允许未收到直播数据时间 毫秒 \n默认: `10000 (10秒) `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
2021-08-13 21:03:21 +08:00
"type": "integer",
"minimum": 0,
"maximum": 4294967295,
"default": 10000
2021-07-15 21:41:21 +08:00
}
}
},
2021-08-13 21:03:21 +08:00
"RecordDanmakuFlushInterval": {
"description": "触发刷新弹幕写入缓冲的个数\n默认: 20",
"markdownDescription": "触发刷新弹幕写入缓冲的个数 \n默认: `20 `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
2021-08-13 21:03:21 +08:00
"type": "integer",
"minimum": 0,
"maximum": 4294967295,
"default": 20
2021-07-15 21:41:21 +08:00
}
}
},
"RecordMode": {
2021-08-13 21:03:21 +08:00
"description": "录制模式\n默认: RecordMode.Standard",
"markdownDescription": "录制模式 \n默认: `RecordMode.Standard `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
"type": "integer",
"default": 0,
"enum": [
0,
1
],
"description": "0: Standard\n1: Raw"
}
}
},
"CuttingMode": {
2021-08-13 21:03:21 +08:00
"description": "自动分段模式\n默认: CuttingMode.Disabled",
"markdownDescription": "自动分段模式 \n默认: `CuttingMode.Disabled `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
"type": "integer",
"default": 0,
"enum": [
0,
1,
2
],
"description": "0: 禁用\n1: 根据时间切割\n2: 根据文件大小切割"
}
}
},
"CuttingNumber": {
2021-08-13 21:03:21 +08:00
"description": "自动分段数值\n默认: 100",
"markdownDescription": "自动分段数值 \n默认: `100 `\n\n按时长分段时为分钟按大小分段时为MiB",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
"type": "integer",
"minimum": 0,
"maximum": 4294967295,
"default": 100
}
}
},
"RecordDanmaku": {
2021-08-13 21:03:21 +08:00
"description": "弹幕录制\n默认: false",
"markdownDescription": "弹幕录制 \n默认: `false `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
"type": "boolean",
"default": false
}
}
},
"RecordDanmakuRaw": {
2021-08-13 21:03:21 +08:00
"description": "弹幕录制-原始数据\n默认: false",
"markdownDescription": "弹幕录制-原始数据 \n默认: `false `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
"type": "boolean",
"default": false
}
}
},
"RecordDanmakuSuperChat": {
2021-08-13 21:03:21 +08:00
"description": "弹幕录制-SuperChat\n默认: true",
"markdownDescription": "弹幕录制-SuperChat \n默认: `true `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
"type": "boolean",
"default": true
}
}
},
"RecordDanmakuGift": {
2021-08-13 21:03:21 +08:00
"description": "弹幕录制-礼物\n默认: false",
"markdownDescription": "弹幕录制-礼物 \n默认: `false `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
"type": "boolean",
"default": false
}
}
},
"RecordDanmakuGuard": {
2021-08-13 21:03:21 +08:00
"description": "弹幕录制-上船\n默认: true",
"markdownDescription": "弹幕录制-上船 \n默认: `true `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
"type": "boolean",
"default": true
}
}
},
"RecordingQuality": {
2021-08-13 21:03:21 +08:00
"description": "直播画质\n默认: 10000",
"markdownDescription": "直播画质 \n默认: `10000 `\n\n录制的直播画质 qn 值,逗号分割,靠前的优先",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
"type": "string",
"default": "10000"
}
}
}
}
},
"room-config": {
2021-08-13 21:03:21 +08:00
"description": "房间独立设置",
2021-07-15 21:41:21 +08:00
"additionalProperties": false,
"properties": {
"RoomId": {
2021-08-13 21:03:21 +08:00
"description": "房间号\n默认: default",
"markdownDescription": "房间号 \n默认: `default `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
}
}
},
"AutoRecord": {
2021-08-13 21:03:21 +08:00
"description": "自动录制\n默认: default",
"markdownDescription": "自动录制 \n默认: `default `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
"type": "boolean"
}
}
},
"RecordMode": {
2021-08-13 21:03:21 +08:00
"description": "录制模式\n默认: RecordMode.Standard",
"markdownDescription": "录制模式 \n默认: `RecordMode.Standard `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
"type": "integer",
"default": 0,
"enum": [
0,
1
],
"description": "0: Standard\n1: Raw"
}
}
},
"CuttingMode": {
2021-08-13 21:03:21 +08:00
"description": "自动分段模式\n默认: CuttingMode.Disabled",
"markdownDescription": "自动分段模式 \n默认: `CuttingMode.Disabled `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
"type": "integer",
"default": 0,
"enum": [
0,
1,
2
],
"description": "0: 禁用\n1: 根据时间切割\n2: 根据文件大小切割"
}
}
},
"CuttingNumber": {
2021-08-13 21:03:21 +08:00
"description": "自动分段数值\n默认: 100",
"markdownDescription": "自动分段数值 \n默认: `100 `\n\n按时长分段时为分钟按大小分段时为MiB",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
"type": "integer",
"minimum": 0,
"maximum": 4294967295,
"default": 100
}
}
},
"RecordDanmaku": {
2021-08-13 21:03:21 +08:00
"description": "弹幕录制\n默认: false",
"markdownDescription": "弹幕录制 \n默认: `false `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
"type": "boolean",
"default": false
}
}
},
"RecordDanmakuRaw": {
2021-08-13 21:03:21 +08:00
"description": "弹幕录制-原始数据\n默认: false",
"markdownDescription": "弹幕录制-原始数据 \n默认: `false `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
"type": "boolean",
"default": false
}
}
},
"RecordDanmakuSuperChat": {
2021-08-13 21:03:21 +08:00
"description": "弹幕录制-SuperChat\n默认: true",
"markdownDescription": "弹幕录制-SuperChat \n默认: `true `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
"type": "boolean",
"default": true
}
}
},
"RecordDanmakuGift": {
2021-08-13 21:03:21 +08:00
"description": "弹幕录制-礼物\n默认: false",
"markdownDescription": "弹幕录制-礼物 \n默认: `false `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
"type": "boolean",
"default": false
}
}
},
"RecordDanmakuGuard": {
2021-08-13 21:03:21 +08:00
"description": "弹幕录制-上船\n默认: true",
"markdownDescription": "弹幕录制-上船 \n默认: `true `\n\n",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
"type": "boolean",
"default": true
}
}
},
"RecordingQuality": {
2021-08-13 21:03:21 +08:00
"description": "直播画质\n默认: 10000",
"markdownDescription": "直播画质 \n默认: `10000 `\n\n录制的直播画质 qn 值,逗号分割,靠前的优先",
2021-07-15 21:41:21 +08:00
"type": "object",
"additionalProperties": false,
"properties": {
"HasValue": {
"type": "boolean",
"default": true
},
"Value": {
"type": "string",
"default": "10000"
}
}
}
}
}
},
"type": "object",
"additionalProperties": false,
"required": [
"$schema",
"version"
],
"properties": {
"$schema": {
"type": "string",
"default": "https://raw.githubusercontent.com/Bililive/BililiveRecorder/dev-1.3/configV2.schema.json"
},
"version": {
"const": 2
},
"global": {
"$ref": "#/definitions/global-config"
},
"rooms": {
"type": "array",
"items": {
"$ref": "#/definitions/room-config"
}
}
}
}