2.17: Custom cache handlers
stephanebruckert
released this
28 Feb 09:14
·
143 commits
to master
since this release
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 ofSpotify.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
orusername
directly toSpotifyOAuth
,SpotifyPKCE
, andSpotifyImplicitGrant
constructors, instead directing users to use theCacheFileHandler
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 intrack
- 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 ofRetry(allowed_methods=...)