Skip to content

Commit

Permalink
优化视频相关接口
Browse files Browse the repository at this point in the history
  • Loading branch information
CuteReimu committed Apr 3, 2024
1 parent d98d921 commit 8263051
Show file tree
Hide file tree
Showing 3 changed files with 246 additions and 673 deletions.
1 change: 0 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ func New() *Client {
SetTimeout(20*time.Second).
SetHeader("Accept", "application/json").
SetHeader("Accept-Language", "zh-CN,zh;q=0.9").
SetHeader("Content-Type", "application/x-www-form-urlencoded").
SetHeader("Origin", "https://www.bilibili.com").
SetHeader("Referer", "https://www.bilibili.com/").
SetHeader("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0")
Expand Down
5 changes: 0 additions & 5 deletions util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ import (
"github.com/go-resty/resty/v2"
)

func TestVideo(t *testing.T) {
c := New()
t.Log(c.GetVideoRecommendList(GetVideoRecommendListParam{Bvid: "BV17x411w7KC"}))
}

func TestQuery(t *testing.T) {
type Test struct {
TestA string `request:"query"`
Expand Down
Loading

0 comments on commit 8263051

Please sign in to comment.