]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
Fix 不自动刷新流地址
authorqydysky <32743305+qydysky@users.noreply.github.com>
Tue, 24 Jan 2023 05:30:44 +0000 (13:30 +0800)
committerqydysky <32743305+qydysky@users.noreply.github.com>
Tue, 24 Jan 2023 05:30:44 +0000 (13:30 +0800)
Reply/stream.go

index ee418dd3bf804d470e34471e7ebbe478828d5e0e..ddd72f21b3f2b6f17a33308444ca6ab049f7ab69 100644 (file)
@@ -506,7 +506,7 @@ func (t *M4SStream) saveStream() (e error) {
        t.Current_save_path = t.config.save_path + "/" +
                time.Now().Format("2006_01_02-15_04_05") + "-" +
                strconv.Itoa(t.common.Roomid) + "-" +
-               t.common.Title +
+               t.common.Title + "-" +
                pstring.Rand(2, 3) +
                `/`
 
@@ -742,21 +742,21 @@ func (t *M4SStream) saveStreamM4s() (e error) {
                fmp4KeyFrames    = slice.New[byte]()
                fmp4KeyFramesBuf []byte
                fmp4Decoder      = &Fmp4Decoder{}
-               flashingSer      bool
+               // flashingSer      bool
        )
 
        // 下载循环
        for download_seq := []*m4s_link_item{}; ; {
 
                // 刷新流地址
-               if !flashingSer && int64(t.common.Live[0].Expires)-time.Now().Unix() < 60 {
-                       flashingSer = true
-                       t.log.L(`T: `, `刷新流地址...`)
-                       go func() {
-                               t.fetchCheckStream()
-                               flashingSer = false
-                       }()
-               }
+               // if !flashingSer && int64(t.common.Live[0].Expires)-time.Now().Unix() < 60 {
+               //      flashingSer = true
+               //      t.log.L(`T: `, `刷新流地址...`)
+               //      go func() {
+               //              t.fetchCheckStream()
+               //              flashingSer = false
+               //      }()
+               // }
 
                // 存在待下载切片
                if len(download_seq) != 0 {