summaryrefslogtreecommitdiff
path: root/bilibili/room_status.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/room_status.go
parentd7bd3edf61109936a09a5115938e86b1c17ea024 (diff)
Refactor: use pointer type of `Bilibili` to prevent unexpected copy.
Diffstat (limited to 'bilibili/room_status.go')
-rw-r--r--bilibili/room_status.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bilibili/room_status.go b/bilibili/room_status.go
index f33277c..8e8f27f 100644
--- a/bilibili/room_status.go
+++ b/bilibili/room_status.go
@@ -9,7 +9,7 @@ import (
"github.com/keuin/slbr/types"
)
-func (b Bilibili) GetRoomPlayInfo(roomId types.RoomId) (resp types.RoomPlayInfoResponse, err error) {
+func (b *Bilibili) GetRoomPlayInfo(roomId types.RoomId) (resp types.RoomPlayInfoResponse, err error) {
url := fmt.Sprintf("https://api.live.bilibili.com/xlive/web-room/v2/index/getRoomPlayInfo"+
"?room_id=%d&protocol=0,1&format=0,1,2&codec=0,1&qn=0&platform=web&ptype=8&dolby=5&panorama=1", roomId)
return callGet[types.RoomPlayInfoResponse](b, url)