Skip to content

Commit

Permalink
Marked as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanebruckert committed Jan 19, 2025
1 parent f5ebcc6 commit e37b1a8
Show file tree
Hide file tree
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
Expand Up @@ -11,6 +11,7 @@ Add your changes below.
### Added
- Added examples for audiobooks, shows and episodes methods to examples directory
- Use newer string formatters (https://pyformat.info)
- Marked `recommendation_genre_seeds` as deprecated

### Fixed
- Fixed scripts in examples directory that didn't run correctly
Expand Down
5 changes: 5 additions & 0 deletions spotipy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1763,6 +1763,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")
Expand Down

1 comment on commit e37b1a8

@stephanebruckert
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Marked recommendation_genre_seeds* as deprecated

Please sign in to comment.