mirror of
https://github.com/AynaLivePlayer/miaosic.git
synced 2025-12-07 13:32:48 +08:00
return possible error
This commit is contained in:
@@ -118,6 +118,9 @@ func (n *Netease) GetMediaUrl(meta miaosic.MetaData, quality miaosic.Quality) ([
|
|||||||
n.ReqData,
|
n.ReqData,
|
||||||
neteaseApi.SongURLConfig{Ids: []int{cast.ToInt(meta.Identifier)}})
|
neteaseApi.SongURLConfig{Ids: []int{cast.ToInt(meta.Identifier)}})
|
||||||
if err != nil || result.Code != 200 {
|
if err != nil || result.Code != 200 {
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
return nil, miaosic.ErrorExternalApi
|
return nil, miaosic.ErrorExternalApi
|
||||||
}
|
}
|
||||||
if len(result.Data) == 0 {
|
if len(result.Data) == 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user