Skip to content

Commit

Permalink
Merge branch 'master' of github.com:spotipy-dev/spotipy into v3
Browse files Browse the repository at this point in the history
stephanebruckert committed Jan 19, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents aa2d6e9 + e37b1a8 commit 6083be8
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -57,6 +57,7 @@ Rebasing master onto v3 doesn't require a changelog update.

- Added examples for audiobooks, shows and episodes methods to examples directory
- Use newer string formatters ([https://pyformat.info](https://pyformat.info))
- Marked `recommendation_genre_seeds` as deprecated

### Fixed

5 changes: 5 additions & 0 deletions spotipy/client.py
Original file line number Diff line number Diff line change
@@ -1435,6 +1435,11 @@ def recommendations(
return self._get("recommendations", **params)

def recommendation_genre_seeds(self):
warnings.warn(
"You're using `recommendation_genre_seeds(...)`, "
"which is marked as deprecated by Spotify.",
DeprecationWarning,
)
""" Get a list of genres available for the recommendations function.
"""
return self._get("recommendations/available-genre-seeds")

0 comments on commit 6083be8

Please sign in to comment.