mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-12 17:10:45 +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:
1 parent
2aeda6a2c2
commit
0464f4f483
2 files changed
+2
-1
No files matched your search
@@ -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
|
||||
|
||||
|
||||
+1
-1
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user