From: qydysky Date: Mon, 17 Apr 2023 13:43:54 +0000 (+0800) Subject: Improve 移除无效配置 X-Git-Tag: v0.8.3~8 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=11d30b0bcd03ab8b54de9f5df9c4158984926c77;p=bili_danmu%2F.git Improve 移除无效配置 --- diff --git a/Reply/stream.go b/Reply/stream.go index 02acc06..e88cab5 100644 --- a/Reply/stream.go +++ b/Reply/stream.go @@ -59,11 +59,10 @@ type M4SStream struct { } type M4SStream_Config struct { - save_path string //直播流保存目录 - want_qn int //直播流清晰度 - want_type string //直播流类型 - banlance_host bool //直播hls流故障转移 - save_to_file bool //保存到文件 + save_path string //直播流保存目录 + want_qn int //直播流清晰度 + want_type string //直播流类型 + save_to_file bool //保存到文件 } type m4s_link_item struct { @@ -168,9 +167,6 @@ func (t *M4SStream) LoadConfig(common c.Common) (e error) { } else { return errors.New(`未配置直播流保存位置`) } - if v, ok := common.K_v.LoadV(`直播hls流故障转移`).(bool); ok { - t.config.banlance_host = v - } if v, ok := common.K_v.LoadV(`直播流保存到文件`).(bool); ok { t.config.save_to_file = v } diff --git a/demo/config/config_K_v.json b/demo/config/config_K_v.json index b4d3308..b519268 100644 --- a/demo/config/config_K_v.json +++ b/demo/config/config_K_v.json @@ -38,7 +38,6 @@ "进房弹幕_有粉丝牌时才发": true, "进房弹幕_仅发首日弹幕": true, "弹幕_识别表情代码": true, - "其他": "", "发送还有几天过期的礼物": 3, "保持牌子亮着": true, "日志文件输出-help": "为空时不保存日志", @@ -59,8 +58,6 @@ "直播流保存天数-help": "当t日有1录播时,会尝试删除t-n日的1个最早的录播。小于1的数将禁用此功能", "直播流保存天数": 4, "直播流保存到文件": true, - "直播hls流故障转移-help":"true:hls服务器故障时,使用其他", - "直播hls流故障转移": true, "仅保存当前直播间流-help": "启用此项,才会保存Ass", "仅保存当前直播间流": true, "修改标题时重新录制": true,