Marked as deprecated

This commit is contained in:
Stéphane Bruckert 2025-01-19 16:47:15 +00:00
parent f5ebcc6fc6
commit e37b1a8a55
2 changed files with 6 additions and 0 deletions

View File

@ -11,6 +11,7 @@ Add your changes below.
### Added ### Added
- Added examples for audiobooks, shows and episodes methods to examples directory - Added examples for audiobooks, shows and episodes methods to examples directory
- Use newer string formatters (https://pyformat.info) - Use newer string formatters (https://pyformat.info)
- Marked `recommendation_genre_seeds` as deprecated
### Fixed ### Fixed
- Fixed scripts in examples directory that didn't run correctly - Fixed scripts in examples directory that didn't run correctly

View File

@ -1763,6 +1763,11 @@ class Spotify:
return self._get("recommendations", **params) return self._get("recommendations", **params)
def recommendation_genre_seeds(self): 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. """ Get a list of genres available for the recommendations function.
""" """
return self._get("recommendations/available-genre-seeds") return self._get("recommendations/available-genre-seeds")