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:
Felix Cusson authored and GitHub committed 2021-12-17 22:20:47 +00:00
1 parent 2aeda6a2c2
commit 0464f4f483
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -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]