From 28aab6d85c6fca2574b874d7315b3716f07991de Mon Sep 17 00:00:00 2001 From: qydysky <32743305+qydysky@users.noreply.github.com> Date: Tue, 21 Mar 2023 01:24:33 +0800 Subject: [PATCH] =?utf8?q?Fix=20=E5=AE=9A=E6=97=B6=E6=9B=B4=E6=96=B0LIVE?= =?utf8?q?=5FBUVID?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- F/api.go | 8 +------- bili_danmu.go | 3 +++ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/F/api.go b/F/api.go index dc1a30c..fc38896 100644 --- a/F/api.go +++ b/F/api.go @@ -1803,13 +1803,7 @@ func Dosign() { // LIVE_BUVID func (c *GetFunc) Get_LIVE_BUVID() (missKey []string) { - apilog := apilog.Base_add(`LIVE_BUVID`) //.L(`T: `, `获取`) - - // if live_buvid, ok := c.Cookie.LoadV(`LIVE_BUVID`).(string); ok && live_buvid != `` { - // apilog.L(`T: `, `存在`) - // c.LIVE_BUVID = true - // return - // } + apilog := apilog.Base_add(`LIVE_BUVID`) //当房间处于特殊活动状态时,将会获取不到,此处使用了若干著名up主房间进行尝试 roomIdList := []string{ diff --git a/bili_danmu.go b/bili_danmu.go index 73866dc..207bd1d 100644 --- a/bili_danmu.go +++ b/bili_danmu.go @@ -330,6 +330,9 @@ func Start() { case <-flash_room_chan: ws_c.Close() danmulog.L(`I: `, "停止,等待服务器断开连接") + //刷新LIVE_BUVID + F.Get(&c.C).Get(`LIVE_BUVID`) + //刷新WSURL F.Get(&c.C).Get(`WSURL`) i = 0 case <-change_room_chan: -- 2.39.2