charlie86 / spotifyr

R wrapper for Spotify's Web API
http://www.rcharlie.com/spotifyr
Other
368 stars 67 forks source link

Not getting all tracks when using get_artist_audio_features() #192

Open mswatek opened 1 year ago

mswatek commented 1 year ago

I'm trying to get audio features for each song I've listened to, but the get_artist_audio_features() function does not display every song for each artist. It seems like there might be an issue with punctuation either within the song title or album name, but not sure if that's the reason. I've also running into issues when I input certain artists of their songs not appearing at all (an example of this is "+44", which is not recognized by name but does appear when I enter their artist ID). Any idea of why this might be? Thanks!

pitkant commented 1 year ago

get_artist_audio_features uses search_spotify to find artists that were inputed using a name and at least I got songs for an artist called "44phantom" instead of "+44" (44phantom was 1st on the list of results when running search_spotify("+44", type = "artist")).

I would always use the artist ID to have the most exact results. Searching and fuzzy matching can be a bit finicky at times.

antaldaniel commented 1 year ago

That is a very good suggestions.

pitkant commented 1 year ago

I think this enhancement could mainly be about clarifying documentation and suggesting more explicitly that users would use artist ID's. The current code is fine, in my opinion.