From c4dbd4a7b2ad86fcb0220a4e2ffdae68d0d00103 Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 29 Jul 2023 20:28:19 +0800 Subject: Merge branch 'bugfix-invalid-dmmsg' --- recording/runner.go | 3 ++- recording/watcher.go | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'recording') diff --git a/recording/runner.go b/recording/runner.go index 9e5f83c..9be78c9 100644 --- a/recording/runner.go +++ b/recording/runner.go @@ -12,6 +12,7 @@ import ( "fmt" "github.com/keuin/slbr/bilibili" errs "github.com/keuin/slbr/bilibili/errors" + "github.com/keuin/slbr/common" "github.com/keuin/slbr/common/files" "github.com/keuin/slbr/common/myurl" "github.com/keuin/slbr/logging" @@ -128,7 +129,7 @@ func tryRunTask(t *RunningTask) error { dmInfo.BUVID3, liveStatusChecker, t.logger, - &bi, + bi, ) // the context is cancelled if errors.Is(err, context.Canceled) { diff --git a/recording/watcher.go b/recording/watcher.go index ff9bde1..269869b 100644 --- a/recording/watcher.go +++ b/recording/watcher.go @@ -4,8 +4,8 @@ import ( "context" "encoding/base64" "encoding/json" - errs "github.com/keuin/slbr/bilibili" - "github.com/keuin/slbr/bilibili/errors" + "github.com/keuin/slbr/bilibili" + errs "github.com/keuin/slbr/bilibili/errors" "github.com/keuin/slbr/danmaku" "github.com/keuin/slbr/danmaku/dmmsg" "github.com/keuin/slbr/danmaku/dmpkg" -- cgit v1.2.3