mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 01:03:53 +00:00
Remove query parameters from URI (#758)
* made _get_id take account of ? in URI * corrected typo * changes to _get_id explained
This commit is contained in:
parent
2aeda6a2c2
commit
0464f4f483
@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
### Added
|
||||
* Added `RedisCacheHandler`, a cache handler that stores the token info in Redis.
|
||||
* Changed URI handling in `client.Spotify._get_id()` to remove qureies if provided by error.
|
||||
|
||||
## [2.19.0] - 2021-08-12
|
||||
|
||||
|
||||
@ -1913,7 +1913,7 @@ class Spotify(object):
|
||||
if type != fields[-2]:
|
||||
logger.warning('Expected id of type %s but found type %s %s',
|
||||
type, fields[-2], id)
|
||||
return fields[-1]
|
||||
return fields[-1].split("?")[0]
|
||||
fields = id.split("/")
|
||||
if len(fields) >= 3:
|
||||
itype = fields[-2]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user