implemented search
This commit is contained in:
parent
99198c9487
commit
28a31c9e4a
@ -152,12 +152,12 @@ func Search(search string) ([]data.MusicObject, error) {
|
|||||||
|
|
||||||
for _, plugin := range namePlugins {
|
for _, plugin := range namePlugins {
|
||||||
s, err := plugin.Search(query)
|
s, err := plugin.Search(query)
|
||||||
res = append(res, s)
|
res = append(res, s...)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return res, err
|
return res, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return res
|
return res, nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user