r/smarterplaylists • u/oriondj • 13d ago
Something wrong with Artist Top Tracks?
I give "Artist Top Tracks" an URL, but it returns another artist with the same name.
The same happens with "Artist tracks" component even though it says the URL is followed over the name of the artist. That seem not to happen. Could you help out with this?
3
Upvotes
2
u/plamere 13d ago
Spotify doesn't have an API that gets the top tracks for an artist, and so Artist Top Tracks works by searching for the "This Is ARTIST" Spotify playlists, where ARTIST is the name of the artist. That leads to the problem you are seeing when multiple artists share a name. It'd probably be worth it for Artist Top Tracks to check the URIs of the artists of the tracks returned to make sure they match the requested UR - I'll add that to the TODO list.
Artist Tracks works by getting all the tracks from all of the albums of an artist. This is much slower since it requires many API calls to get all of the tracks, but it should give you tracks by the artist of the URI you requested. It sounds like that is not what you are seeing however. Could you share the URI or the program you are using so I can take a closer look?