From f5c63cde56eb35c0125a0545f084441cdd4340ab Mon Sep 17 00:00:00 2001 From: Keuin Date: Tue, 11 Jul 2023 22:56:07 +0800 Subject: Refactor: move data structures to a separate package to avoid circular dependency. --- bilibili/streaming.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bilibili/streaming.go') diff --git a/bilibili/streaming.go b/bilibili/streaming.go index 9f74950..2e0416c 100644 --- a/bilibili/streaming.go +++ b/bilibili/streaming.go @@ -6,6 +6,7 @@ import ( "fmt" errs "github.com/keuin/slbr/bilibili/errors" "github.com/keuin/slbr/common/files" + "github.com/keuin/slbr/types" "io" "net/http" "os" @@ -17,8 +18,8 @@ const InitReadBytes = 4096 // 4KiB // CopyLiveStream read data from a livestream video stream, copy them to a writer. func (b Bilibili) CopyLiveStream( ctx context.Context, - roomId RoomId, - stream StreamingUrlInfo, + roomId types.RoomId, + stream types.StreamingUrlInfo, fileCreator func() (*os.File, error), bufSize int64, ) (err error) { -- cgit v1.2.3