diff --git a/src/segments/spotify_wsl.go b/src/segments/spotify_wsl.go index 9a8bc63c..ab754754 100644 --- a/src/segments/spotify_wsl.go +++ b/src/segments/spotify_wsl.go @@ -22,6 +22,7 @@ func (s *Spotify) Enabled() bool { } for _, record := range records { + record = strings.TrimSpace(record) fields := strings.Split(record, ",") if len(fields) == 0 { continue