github spotipy-dev/spotipy 2.17.0
2.17: Custom cache handlers

latest releases: 2.24.0, 2.23.0, 2.22.1...
3 years ago

Changed

  • moved os.remove(session_cache_path()) inside try block to avoid TypeError on app.py example file
  • A warning will no longer be emitted when the cache file does not exist at the specified path
  • The docs for the auth parameter of Spotify.init use the term "access token" instead of "authorization token"
  • Changed docs for search to mention that you can provide multiple types to search for
  • The query parameters of requests are now logged
  • Deprecate specifing cache_path or username directly to SpotifyOAuth, SpotifyPKCE, and SpotifyImplicitGrant constructors, instead directing users to use the CacheFileHandler cache handler
  • Removed requirement for examples/app.py to specify port multiple times (only SPOTIPY_REDIRECT_URI needs to contain the port)

Added

  • Added log messages for when the access and refresh tokens are retrieved and when they are refreshed
  • Support market optional parameter in track
  • Added CacheHandler abstraction to allow users to cache tokens in any way they see fit

Fixed

  • Fixed Spotify.user_playlist_reorder_tracks calling Spotify.playlist_reorder_tracks with an incorrect parameter order
  • Fixed deprecated Urllib3 Retry(method_whitelist=...) in favor of Retry(allowed_methods=...)

Don't miss a new spotipy release

NewReleases is sending notifications on new releases.