From 6da9cc7bd41b955c7af791fa8cd628339af0da29 Mon Sep 17 00:00:00 2001 From: qydysky <32743305+qydysky@users.noreply.github.com> Date: Tue, 24 Jan 2023 13:30:44 +0800 Subject: [PATCH] =?utf8?q?Fix=20=E4=B8=8D=E8=87=AA=E5=8A=A8=E5=88=B7?= =?utf8?q?=E6=96=B0=E6=B5=81=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Reply/stream.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Reply/stream.go b/Reply/stream.go index ee418dd..ddd72f2 100644 --- a/Reply/stream.go +++ b/Reply/stream.go @@ -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 { -- 2.39.2