From 04d3c8135069b36b9071b3fe4c0ca88362a6ef7c Mon Sep 17 00:00:00 2001 From: qydysky Date: Sun, 8 May 2022 00:25:35 +0800 Subject: [PATCH] =?utf8?q?=E6=B5=81=E4=B8=8B=E8=BD=BD=E8=B6=85=E6=97=B6?= =?utf8?q?=E4=B8=8D=E6=8F=90=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Reply/stream.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Reply/stream.go b/Reply/stream.go index 676cf24..b3d1e7c 100644 --- a/Reply/stream.go +++ b/Reply/stream.go @@ -384,7 +384,9 @@ func (t *M4SStream) saveStream() { Timeout: 2000, Proxy: t.common.Proxy, }); e != nil && !errors.Is(e, io.EOF) { - t.log.L(`E: `, `hls切片下载失败:`, e) + if !reqf.IsTimeout(e) { + t.log.L(`E: `, `hls切片下载失败:`, e) + } link.status = 3 // 设置切片状态为下载失败 } else { if usedt := r.UsedTime.Seconds(); usedt > 700 { @@ -483,7 +485,6 @@ func (t *M4SStream) Start() { // 主循环 for t.Status.Islive() { // 是否在直播 - t.log.L(`I: `, t.common.Roomid) F.Get(&t.common).Get(`Liveing`) if !t.common.Liveing { t.log.L(`T: `, `未直播`) @@ -510,7 +511,7 @@ func (t *M4SStream) Start() { t.saveStream() } - t.log.L(`T: `, `结束`+strconv.Itoa(t.common.Roomid)) + t.log.L(`I: `, `结束录制(`+strconv.Itoa(t.common.Roomid)+`)`) t.exitSign.Done() } -- 2.39.2