summaryrefslogtreecommitdiff
path: root/recording
diff options
context:
space:
mode:
authorKeuin <[email protected]>2023-07-29 20:28:19 +0800
committerKeuin <[email protected]>2023-07-29 20:28:28 +0800
commitc4dbd4a7b2ad86fcb0220a4e2ffdae68d0d00103 (patch)
tree37e3487153a377aa5555d780c15f3a774237722e /recording
parent9b5c3913989754370bd7d03ac8cf2e32a6172afb (diff)
Merge branch 'bugfix-invalid-dmmsg'v0.5.0
Diffstat (limited to 'recording')
-rw-r--r--recording/runner.go3
-rw-r--r--recording/watcher.go4
2 files changed, 4 insertions, 3 deletions
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"