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's Albums now expects "include_groups" param instead of "album_type" #1107

Closed
NickyReid opened this issue May 17, 2024 · 1 comment · Fixed by #1108
Closed

Get Artist's Albums now expects "include_groups" param instead of "album_type" #1107

NickyReid opened this issue May 17, 2024 · 1 comment · Fixed by #1108
Labels

Comments

@NickyReid
Copy link

NickyReid commented May 17, 2024

Describe the bug
Spotify Web API used to accept album_type param when getting artists albums, even though the docs say the name of the param is include_groups. Today they have updated the API to align with the docs, so the album_type param in artist_albums is no longer working. I have tested locally replacing the param with include_groups and it works.

def artist_albums(self, artist_id, album_type=None, country=None, limit=20, offset=0):
        trid = self._get_id("artist", artist_id)
        return self._get(
            "artists/" + trid + "/albums",
            include_groups=album_type,
            country=country,
            limit=limit,
            offset=offset,
        )

This works.

Link to issue on Spotify dev community

@NickyReid NickyReid added the bug label May 17, 2024
@dieser-niko
Copy link
Member

I'll update it right away. It seems that Spotifys Documentation change was at least more than a year ago, according to the wayback machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants