]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
Fix 定时更新LIVE_BUVID
authorqydysky <32743305+qydysky@users.noreply.github.com>
Mon, 20 Mar 2023 17:24:33 +0000 (01:24 +0800)
committerqydysky <32743305+qydysky@users.noreply.github.com>
Mon, 20 Mar 2023 17:24:33 +0000 (01:24 +0800)
F/api.go
bili_danmu.go

index dc1a30c897094d265f42405b622350563774e633..fc388960d341340a4a445f834c54594255e40553 100644 (file)
--- 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{
index 73866dc84482d596c46a0025a30e7a539fe3b6a5..207bd1d4789ae3d4190f804c4bb97536760eece9 100644 (file)
@@ -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: