mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-12 01:10:45 +00:00
Merge pull request #420 from ritiek/fix-split-http-url
Trim '?<key>' when extracting ID from HTTP URLs
This commit is contained in:
2 files changed
+5
-1
No files matched your search
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Fixed inconsistent behaviour with some API methods when
|
||||||
|
a full HTTP URL is passed.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Fixed invalid calls to logging warn method
|
- Fixed invalid calls to logging warn method
|
||||||
- `mock` no longer needed for install. Only used in `tox`.
|
- `mock` no longer needed for install. Only used in `tox`.
|
||||||
|
|||||||
+1
-1
@@ -1128,7 +1128,7 @@ class Spotify(object):
|
|||||||
if type != itype:
|
if type != itype:
|
||||||
self._warn('expected id of type %s but found type %s %s' %
|
self._warn('expected id of type %s but found type %s %s' %
|
||||||
(type, itype, id))
|
(type, itype, id))
|
||||||
return fields[-1]
|
return fields[-1].split('?')[0]
|
||||||
return id
|
return id
|
||||||
|
|
||||||
def _get_uri(self, type, id):
|
def _get_uri(self, type, id):
|
||||||
|
|||||||
Reference in new issue
Block a user