summaryrefslogtreecommitdiff
path: root/bilibili/play_url.go
diff options
context:
space:
mode:
authorKeuin <[email protected]>2023-07-14 22:25:27 +0800
committerKeuin <[email protected]>2023-07-14 22:25:27 +0800
commit2ace07d2d88c01a56b4d0f3194bd74a518a769c8 (patch)
treeb218043dacec97c08469855950838ceca67496c6 /bilibili/play_url.go
parentd7bd3edf61109936a09a5115938e86b1c17ea024 (diff)
Refactor: use pointer type of `Bilibili` to prevent unexpected copy.
Diffstat (limited to 'bilibili/play_url.go')
-rw-r--r--bilibili/play_url.go2
1 files changed, 1 insertions, 1 deletions
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)