From a1c08a5cf23ff9460849a089f796d561090427c9 Mon Sep 17 00:00:00 2001 From: qydysky <32743305+qydysky@users.noreply.github.com> Date: Thu, 15 Sep 2022 20:55:06 +0800 Subject: [PATCH] =?utf8?q?=E5=BC=80=E6=92=AD=E6=97=B6=E6=97=A0=E6=B3=95?= =?utf8?q?=E5=BD=95=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Reply/stream.go | 7 +++++++ demo/config/config_danmu_official.json | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Reply/stream.go b/Reply/stream.go index 78002c4..7ee5b85 100644 --- a/Reply/stream.go +++ b/Reply/stream.go @@ -737,6 +737,13 @@ func (t *M4SStream) Start() bool { return false } + // 是否在直播 + F.Get(&t.common).Get(`Liveing`) + if !t.common.Liveing { + t.log.L(`W: `, `未直播`) + return false + } + t.Status = signal.Init() go func() { defer t.Status.Done() diff --git a/demo/config/config_danmu_official.json b/demo/config/config_danmu_official.json index 39c68e6..e8215cd 100644 --- a/demo/config/config_danmu_official.json +++ b/demo/config/config_danmu_official.json @@ -2,5 +2,9 @@ "点赞": "official_147", "妙啊": "official_109", "有点东西": "official_113", - "离谱": "official_120" + "离谱": "official_120", + "很有精神":"official_150", + "泪目":"official_103", + "赢麻了":"official_128", + "钝角":"official_133" } \ No newline at end of file -- 2.39.2