Skip to content

Commit

Permalink
fix(convert): log warning if playlist is empty rather than fatal
Browse files Browse the repository at this point in the history
  • Loading branch information
Zibbp committed Dec 3, 2024
1 parent 9cc5500 commit 1854679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion convert/spotify_tidal.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (s *Service) SpotifyToTidal(saveMissingTracks bool, saveTidalPlaylist bool,
}

if dbPlaylist == "" {
return fmt.Errorf("playlist is empty: %s", dbPlaylist)
log.Warn().Str("name", spotifyPlaylist.Name).Str("id", spotifyPlaylist.ID.String()).Msgf("playlist is empty, skipping")
}

// get all local database tracks
Expand Down

0 comments on commit 1854679

Please sign in to comment.