aboutsummaryrefslogtreecommitdiff
path: root/spotify.go
diff options
context:
space:
mode:
Diffstat (limited to 'spotify.go')
-rw-r--r--spotify.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/spotify.go b/spotify.go
index 951bbd9..0c0ea8f 100644
--- a/spotify.go
+++ b/spotify.go
@@ -100,7 +100,7 @@ func (spotify *SpotifyBackend) Search(keyword string) []Song {
fmt.Printf("\nTracks: %d (total %d)\n", len(res.Tracks.Hits), res.Tracks.Total)
- results := []Song{}
+ results := make([]Song, 0)
for _, track := range res.Tracks.Hits {
uriParts := strings.Split(track.Uri, ":")
results = append(results, NewSong(track.Name, track.Artists[0].Name, "spotify", uriParts[len(uriParts)-1]))