From 2ace07d2d88c01a56b4d0f3194bd74a518a769c8 Mon Sep 17 00:00:00 2001 From: Keuin Date: Fri, 14 Jul 2023 22:25:27 +0800 Subject: Refactor: use pointer type of `Bilibili` to prevent unexpected copy. --- bilibili/play_url.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bilibili/play_url.go') diff --git a/bilibili/play_url.go b/bilibili/play_url.go index c2c6709..3f38272 100644 --- a/bilibili/play_url.go +++ b/bilibili/play_url.go @@ -5,7 +5,7 @@ import ( "github.com/keuin/slbr/types" ) -func (b Bilibili) GetStreamingInfo(roomId types.RoomId) (resp types.RoomUrlInfoResponse, err error) { +func (b *Bilibili) GetStreamingInfo(roomId types.RoomId) (resp types.RoomUrlInfoResponse, err error) { url := fmt.Sprintf("https://api.live.bilibili.com/room/v1/Room/playUrl?"+ "cid=%d&otype=json&qn=10000&platform=web", roomId) return callGet[types.RoomUrlInfoResponse](b, url) -- cgit v1.2.3