mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-12 01: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
+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