mirror of
https://github.com/aditya-K2/gspt.git
synced 2026-01-09 22:08:04 -05:00
Add Search Wrapper
This commit is contained in:
@@ -289,3 +289,11 @@ func GetArtistAlbums(artistID spotify.ID) ([]spotify.SimpleAlbum, error) {
|
|||||||
}
|
}
|
||||||
return c.Albums, nil
|
return c.Albums, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Search(s string) (*spotify.SearchResult, error) {
|
||||||
|
return Client.Search(ctx(), s,
|
||||||
|
spotify.SearchTypePlaylist|
|
||||||
|
spotify.SearchTypeAlbum|
|
||||||
|
spotify.SearchTypeTrack|
|
||||||
|
spotify.SearchTypeArtist)
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user