Open fatg3erman opened 8 years ago
This is a regression after switching from using libspotify to the Web API for search (version 2.3.1). From the changelog:
Note that search through the Spotify Web API doesn't return artists or date for albums.
The reason the switch was done, and that the regression wasn't fixed in that release was that Spotify deactivated search through libspotify, so we wanted to switch to the Web API as fast as possible, since a working search with most of the functionality is better than no search.
Apparently, search through libspotify is now working again, but Spotify hasn't communicated anything, so it may not be smart to rely on that.
I guess there are three possible fixes for this:
Why does Search return full objects for tracks, but only partial albums? It’s a fine balance between keeping the response small but at the same time include as much information as possible. We’ve expanded response objects previously, and we’ll definitely keep this in mind as we tweak the Search endpoint.
Thanks for the explanation. Sounds like relying on libspotify for anything is not a good idea. Their API decision makes sense in the context of the way the Spotify desktop application displays things, but the whole point of an API is to support different ideas, surely? I think that the best thing to do is try to persuade Spotify to improve their API. I'll gladly help with that if I can.
Is there a solution in the works for this issue? I ask as a front-end dev looking at implementing a client side solution to the problem, but I'd hate to spend time working on it only to have it fixed on the server-side.
I'm noticing that now I've upgraded to the latest mopidy and mopidy-spotify I'm getting some odd results when I search for artists on Spotify.
I'm searching using the mpd interface but I'm pretty sure mopidy-spotify is sending it models without the artist field filled in, when those are search results with just an album URI. For example:
This is definitely a regression from the old behaviour where the Artist field was always filled in. An album name without an artist isn't very helpful in search results.