From b6eb2c0da4e653c6fdd278bcbdcd55ec376cd481 Mon Sep 17 00:00:00 2001 From: Keuin Date: Sun, 2 Jul 2023 14:48:47 +0800 Subject: Refactor: move RoomId type to the correct package. Type all room ID usages. --- bilibili/play_url.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bilibili/play_url.go') diff --git a/bilibili/play_url.go b/bilibili/play_url.go index 36882bc..49e8298 100644 --- a/bilibili/play_url.go +++ b/bilibili/play_url.go @@ -2,7 +2,6 @@ package bilibili import ( "fmt" - "github.com/keuin/slbr/common" ) type RoomUrlInfoResponse = BaseResponse[roomUrlInfo] @@ -28,7 +27,7 @@ type StreamingUrlInfo struct { P2pType int `json:"p2p_type"` } -func (b Bilibili) GetStreamingInfo(roomId common.RoomId) (resp RoomUrlInfoResponse, err error) { +func (b Bilibili) GetStreamingInfo(roomId RoomId) (resp 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[RoomUrlInfoResponse](b, url) -- cgit v1.2.3