]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
Improve 移除无效配置
authorqydysky <qydysky@foxmail.com>
Mon, 17 Apr 2023 13:43:54 +0000 (21:43 +0800)
committerqydysky <qydysky@foxmail.com>
Mon, 17 Apr 2023 13:43:54 +0000 (21:43 +0800)
Reply/stream.go
demo/config/config_K_v.json

index 02acc06880093fb89d7af9b0f2a2a397a5a81269..e88cab556114502a14acda6d89735332f00ce9bb 100644 (file)
@@ -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
        }
index b4d33089b2af156ae01bb8f4219d3cc3dd97da3d..b519268885820c386cfe8e36adc80680fa69ee50 100644 (file)
@@ -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,