From 55ad04cfefff3414c997ad972fd941804bb19d5c Mon Sep 17 00:00:00 2001 From: qydysky Date: Sat, 1 Jul 2023 23:50:55 +0800 Subject: [PATCH] =?utf8?q?Improve=20=E5=88=B7=E6=96=B0=E6=88=BF=E9=97=B4?= =?utf8?q?=E6=97=B6=EF=BC=8C=E9=87=8D=E6=96=B0=E8=8E=B7=E5=8F=96=E5=BC=B9?= =?utf8?q?=E5=B9=95url?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bili_danmu.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bili_danmu.go b/bili_danmu.go index 63a3436..3b346ea 100644 --- a/bili_danmu.go +++ b/bili_danmu.go @@ -163,17 +163,17 @@ func Start() { }) F.Get(c.C).Get(`Liveing`) - //检查与切换粉丝牌,只在cookie存在时启用 + // 检查与切换粉丝牌,只在cookie存在时启用 F.Get(c.C).Get(`CheckSwitch_FansMedal`) - //直播状态 + // 直播状态 if c.C.Liveing { danmulog.L(`I: `, "直播中") } else { danmulog.L(`I: `, "未直播") } - //对每个弹幕服务器尝试 + // 对每个弹幕服务器尝试 F.Get(c.C).Get(`WSURL`) aliveT := time.Now().Add(3 * time.Hour) for i, exitloop := 0, false; !exitloop && i < len(c.C.WSURL) && time.Now().Before(aliveT); { @@ -313,6 +313,7 @@ func Start() { return true }, `flash_room`: func(_ any) bool { //重进房时退出当前房间 + F.Get(c.C).Get(`WSURL`) ws_c.Close() return true }, -- 2.39.2