mirror of
https://github.com/AynaLivePlayer/miaosic.git
synced 2025-12-06 13:02:48 +08:00
update dependency, update netease test
This commit is contained in:
26
go.mod
26
go.mod
@@ -1,6 +1,8 @@
|
||||
module github.com/AynaLivePlayer/miaosic
|
||||
|
||||
go 1.20
|
||||
go 1.23.0
|
||||
|
||||
toolchain go1.24.4
|
||||
|
||||
//replace (
|
||||
// github.com/aynakeya/deepcolor => ../../../deepcolor
|
||||
@@ -9,23 +11,23 @@ go 1.20
|
||||
require (
|
||||
github.com/XiaoMengXinX/Music163Api-Go v0.1.30
|
||||
github.com/aynakeya/deepcolor v1.0.3
|
||||
github.com/dhowden/tag v0.0.0-20230630033851-978a0926ee25
|
||||
github.com/go-resty/resty/v2 v2.7.0
|
||||
github.com/dhowden/tag v0.0.0-20240417053706-3d75831295e8
|
||||
github.com/go-resty/resty/v2 v2.16.5
|
||||
github.com/jinzhu/copier v0.4.0
|
||||
github.com/sahilm/fuzzy v0.1.0
|
||||
github.com/sahilm/fuzzy v0.1.1
|
||||
github.com/saintfish/chardet v0.0.0-20230101081208-5e3ef4b5456d
|
||||
github.com/spf13/cast v1.5.0
|
||||
github.com/spf13/cast v1.9.2
|
||||
github.com/spf13/cobra v1.9.1
|
||||
github.com/stretchr/testify v1.8.4
|
||||
github.com/tidwall/gjson v1.16.0
|
||||
github.com/stretchr/testify v1.10.0
|
||||
github.com/tidwall/gjson v1.18.0
|
||||
github.com/yeqown/go-qrcode/v2 v2.2.5
|
||||
github.com/yeqown/go-qrcode/writer/file v1.0.0
|
||||
golang.org/x/text v0.3.7
|
||||
golang.org/x/text v0.26.0
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/PuerkitoBio/goquery v1.7.1 // indirect
|
||||
github.com/andybalholm/cascadia v1.2.0 // indirect
|
||||
github.com/PuerkitoBio/goquery v1.10.3 // indirect
|
||||
github.com/andybalholm/cascadia v1.3.3 // indirect
|
||||
github.com/davecgh/go-spew v1.1.1 // indirect
|
||||
github.com/google/uuid v1.3.0 // indirect
|
||||
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
||||
@@ -33,8 +35,8 @@ require (
|
||||
github.com/pmezard/go-difflib v1.0.0 // indirect
|
||||
github.com/spf13/pflag v1.0.6 // indirect
|
||||
github.com/tidwall/match v1.1.1 // indirect
|
||||
github.com/tidwall/pretty v1.2.0 // indirect
|
||||
github.com/tidwall/pretty v1.2.1 // indirect
|
||||
github.com/yeqown/reedsolomon v1.0.0 // indirect
|
||||
golang.org/x/net v0.0.0-20211029224645-99673261e6eb // indirect
|
||||
golang.org/x/net v0.41.0 // indirect
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
)
|
||||
|
||||
@@ -67,8 +67,7 @@ func TestNetease_UpdateMediaLyric(t *testing.T) {
|
||||
require.NotEmpty(t, lrcs)
|
||||
}
|
||||
|
||||
// todo: unable to get url for this song
|
||||
func TestNetease_GetMediaUrl(t *testing.T) {
|
||||
func TestNetease_GetMediaUrl_Vip(t *testing.T) {
|
||||
meta := miaosic.MetaData{
|
||||
Provider: api.GetName(),
|
||||
Identifier: "2601642780",
|
||||
@@ -80,6 +79,19 @@ func TestNetease_GetMediaUrl(t *testing.T) {
|
||||
t.Log(urls[0].Url)
|
||||
}
|
||||
|
||||
// todo: unable to get url for this song
|
||||
func TestNetease_GetMediaUrl_3(t *testing.T) {
|
||||
meta := miaosic.MetaData{
|
||||
Provider: api.GetName(),
|
||||
Identifier: "28038055",
|
||||
}
|
||||
urls, err := api.GetMediaUrl(meta, miaosic.QualityAny)
|
||||
require.NoError(t, err)
|
||||
require.NotEmpty(t, urls)
|
||||
require.True(t, strings.Contains(urls[0].Url, "http"))
|
||||
t.Log(urls[0].Url)
|
||||
}
|
||||
|
||||
//func TestNetease_GetPlaylist(t *testing.T) {
|
||||
// var api adapter.MediaProvider = NeteaseAPI
|
||||
// playlist, err := api.GetPlaylist(&model.Meta{
|
||||
|
||||
Reference in New Issue
Block a user