jakubito / spotify-release-list

📅 Display list of Spotify releases from artists you follow
https://spotifyreleaselist.netlify.app
ISC License
230 stars 9 forks source link

Compilations show even if deselected in options #11

Closed Mookiies closed 3 years ago

Mookiies commented 3 years ago

Even when I exclude compilations a ton of them end up showing in the results. Some of these albums seem to be labeled explicitly by spotify as compilations which made me suspect this is a bug?

Filtering by various artists does an excellent job of getting rid of them so that also made me wonder if this is an issue that someone tried to solve and ended up with a hack-ish solution?

Below is an example: image image

image

Mookiies commented 3 years ago

Album info in case it is useful:

spotify:album:3NIjbnvM8NKJD6kcL3GIVn
https://open.spotify.com/album/3NIjbnvM8NKJD6kcL3GIVn?si=uG-eWSnJTvejOTrcZJzxEg
jakubito commented 3 years ago

This is because album_group field is used to categorize releases. Regarding the compilation you posted, Spotify API returns appears_on for artists you follow (Ice Cube, No Doubt, UB40), therefore the compilation is saved under "Appearances". I admit this is a bit confusing, but it's not a bug. The various artists filter has been added to work around this.

Difference between album_group and album_type (from Spotify docs):

image

Mookiies commented 3 years ago

👍 Makes sense that its an API limitation so not much can be done. The workaround works great to filter them out anyways.

Only suggestion I can think of is maybe adding some sort of text if compilations are deselected as the workaround may be hard to find.