mirror of
https://github.com/AynaLivePlayer/miaosic.git
synced 2025-12-06 13:02: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,
|
||||
neteaseApi.SongURLConfig{Ids: []int{cast.ToInt(meta.Identifier)}})
|
||||
if err != nil || result.Code != 200 {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, miaosic.ErrorExternalApi
|
||||
}
|
||||
if len(result.Data) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user