Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_artist_audio_features() #159

Open
josephquinn opened this issue Sep 22, 2021 · 2 comments
Open

get_artist_audio_features() #159

josephquinn opened this issue Sep 22, 2021 · 2 comments

Comments

@josephquinn
Copy link

When I call get_artist_audio_features() on certain artist names, I get an interesting error. Consider below:

get_artist_audio_features('Kent Jones')
Error in get_artist_audio_features("Kent Jones") : No artist found with artist_id='3jHBxvZ9gbBkZ17wKUqVsO'

But there is an artist named "Kent Jones," and his artist ID is actually the exact ID that the error returned. This has also happened for the following artists:

Kyla (77DAFfvm3O9zT5dIoG0eIO)
Rozes (6jsjhAEteAlY0vCiLvMLBA)
Natalie La Rose (2qdONMCoDngQk0eV4Avs1i)
Remy Boyz (2s0yxtiHiyGe6CY4mbDYFi)

How could the function possibly return an accurate ID for the artist if it allegedly can't find said artist by name?

How can I extract the data associated with the get_artist_audio_features() function for these artists?

Thanks!

@antaldaniel
Copy link
Collaborator

This is a function naming problem. get_artist_audio_features() refers to get_artist_albums(), but Kenny Jones has no albums. However, get_artist_albums() should be re-named get_artist_catalog(), as it can also retreive information about singles, and it returns the singles of Kenny Jones.

This is a relatively easy fix, the harder part is do it in a way that does not affect legacy code and maintains function API consistence. I will shortly come up with something.

@antaldaniel
Copy link
Collaborator

In fact, this appears to be a case of #159.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
New major CRAN release
Awaiting triage
Development

No branches or pull requests

2 participants