diff options
| author | myOmikron <git@omikron.dev> | 2023-01-25 21:48:12 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-02-24 12:49:24 +0100 |
| commit | 07abe80065aa0ff3c203b2b0dcfb20c7a0a8c7c5 (patch) | |
| tree | 78bafd0fd2d5f55145d5aecc8a63222d483638e2 /spotify.go | |
| parent | c3c450eeb037adab5873cbd63ed772c4b7121a63 (diff) | |
| download | WRMS-07abe80065aa0ff3c203b2b0dcfb20c7a0a8c7c5.tar.gz WRMS-07abe80065aa0ff3c203b2b0dcfb20c7a0a8c7c5.zip | |
General cleanup and deprecation fixes
Diffstat (limited to 'spotify.go')
| -rw-r--r-- | spotify.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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])) |
