diff --git a/BililiveRecorder.Core/Config/V2/Config.gen.cs b/BililiveRecorder.Core/Config/V2/Config.gen.cs index 4d0569f..513fbc7 100644 --- a/BililiveRecorder.Core/Config/V2/Config.gen.cs +++ b/BililiveRecorder.Core/Config/V2/Config.gen.cs @@ -95,10 +95,10 @@ namespace BililiveRecorder.Core.Config.V2 /// /// 录制的直播画质 qn 值,逗号分割,靠前的优先 /// - public string RecordingQuality { get => this.GetPropertyValue(); set => this.SetPropertyValue(value); } + public string? RecordingQuality { get => this.GetPropertyValue(); set => this.SetPropertyValue(value); } public bool HasRecordingQuality { get => this.GetPropertyHasValue(nameof(this.RecordingQuality)); set => this.SetPropertyHasValue(value, nameof(this.RecordingQuality)); } [JsonProperty(nameof(RecordingQuality)), EditorBrowsable(EditorBrowsableState.Never)] - public Optional OptionalRecordingQuality { get => this.GetPropertyValueOptional(nameof(this.RecordingQuality)); set => this.SetPropertyValueOptional(value, nameof(this.RecordingQuality)); } + public Optional OptionalRecordingQuality { get => this.GetPropertyValueOptional(nameof(this.RecordingQuality)); set => this.SetPropertyValueOptional(value, nameof(this.RecordingQuality)); } /// /// 录制断开重连时间间隔 毫秒 @@ -328,10 +328,10 @@ namespace BililiveRecorder.Core.Config.V2 /// /// 录制的直播画质 qn 值,逗号分割,靠前的优先 /// - public string RecordingQuality { get => this.GetPropertyValue(); set => this.SetPropertyValue(value); } + public string? RecordingQuality { get => this.GetPropertyValue(); set => this.SetPropertyValue(value); } public bool HasRecordingQuality { get => this.GetPropertyHasValue(nameof(this.RecordingQuality)); set => this.SetPropertyHasValue(value, nameof(this.RecordingQuality)); } [JsonProperty(nameof(RecordingQuality)), EditorBrowsable(EditorBrowsableState.Never)] - public Optional OptionalRecordingQuality { get => this.GetPropertyValueOptional(nameof(this.RecordingQuality)); set => this.SetPropertyValueOptional(value, nameof(this.RecordingQuality)); } + public Optional OptionalRecordingQuality { get => this.GetPropertyValueOptional(nameof(this.RecordingQuality)); set => this.SetPropertyValueOptional(value, nameof(this.RecordingQuality)); } } diff --git a/BililiveRecorder.Core/Config/V2/build_config.data.js b/BililiveRecorder.Core/Config/V2/build_config.data.js index 1e4f932..5ec9813 100644 --- a/BililiveRecorder.Core/Config/V2/build_config.data.js +++ b/BililiveRecorder.Core/Config/V2/build_config.data.js @@ -121,6 +121,7 @@ module.exports = { "name": "RecordingQuality", "type": "string", "desc": "录制的直播画质 qn 值,逗号分割,靠前的优先", - "default": "\"10000\"" + "default": "\"10000\"", + "nullable": true },] }