mirror of
https://github.com/AynaLivePlayer/miaosic.git
synced 2025-12-06 13:02:48 +08:00
problem: unable to get url for some netease song
This commit is contained in:
@@ -50,6 +50,19 @@ func TestNetease_UpdateMediaLyric(t *testing.T) {
|
||||
require.NotEmpty(t, lrcs)
|
||||
}
|
||||
|
||||
// todo: unable to get url for this song
|
||||
func TestNetease_GetMediaUrl(t *testing.T) {
|
||||
meta := miaosic.MetaData{
|
||||
Provider: api.GetName(),
|
||||
Identifier: "2601642780",
|
||||
}
|
||||
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