fix(spotify): trim whitespace before processing

This commit is contained in:
Jan De Dobbeleer 2024-03-14 14:41:56 +01:00 committed by Jan De Dobbeleer
parent bdc34aeeb7
commit a7c60c36a5

View file

@ -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