]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
Fix 配置“直播流不使用mcdn“失效
authorqydysky <qydysky@foxmail.com>
Wed, 22 May 2024 13:18:58 +0000 (13:18 +0000)
committerqydysky <qydysky@foxmail.com>
Wed, 22 May 2024 13:18:58 +0000 (13:18 +0000)
F/api.go

index 09bb291d84e58e22f67bfa0eeeb88cc53002776f..292e724fe41c5d095284c26d253fee68100813de 100644 (file)
--- a/F/api.go
+++ b/F/api.go
@@ -408,7 +408,7 @@ func (t *GetFunc) configStreamType(sts []struct {
                if _, ok := t.Qn[t.Live_qn]; !ok {
                        apilog.L(`W: `, `未知的清晰度`, t.Live_qn)
                }
-               apilog.L(`T: `, fmt.Sprintf("使用 %d 条直播流 %s %s %s", len(t.Live), t.Qn[t.Live_qn], wantTypes[chosen].Format_name, wantTypes[chosen].Codec_name))
+               apilog.L(`T: `, fmt.Sprintf("获取到 %d 条直播流 %s %s %s", len(t.Live), t.Qn[t.Live_qn], wantTypes[chosen].Format_name, wantTypes[chosen].Codec_name))
        }()
 
        // 期望类型
@@ -466,7 +466,7 @@ func (t *GetFunc) configStreamType(sts []struct {
                                                        }
                                                }
 
-                                               t.Live = append(t.Live, item)
+                                               t.Live = append(t.Live, &item)
                                        }
 
                                        // 已选定并设置好参数 退出