Fix playlist add items (#559)

* fixed uri issue in playlist_add_items

All uris were being converted to track uris
making it impossible to add episodes to playlists.

* Added tests for episode adds

also fixed creep uri so those tests no longer fail

* Fixed creep_url to match creep_uri

* revert pip version, added FIX to changelog

Co-authored-by: Paul Lamere <paull@spotify.com>
This commit is contained in:
Paul LamereandPaul Lamere authored and GitHub committed 2020-08-25 19:37:53 +01:00
1 parent 3d48d77615
commit 651080e3da
4 files changed
+40 -4

No files matched your search

+7 -1
View File
@@ -1824,7 +1824,13 @@ class Spotify(object):
return id
def _get_uri(self, type, id):
return "spotify:" + type + ":" + self._get_id(type, id)
if self._is_uri(id):
return id
else:
return "spotify:" + type + ":" + self._get_id(type, id)
def _is_uri(self, uri):
return uri.startswith("spotify:") and len(uri.split(':')) == 3
def _search_multiple_markets(self, q, limit, offset, type, markets, total):
if total and limit > total: