From ca3866dee66d2cc8c50ff63fa7539021362f5e03 Mon Sep 17 00:00:00 2001 From: happyleaves Date: Thu, 17 Aug 2017 20:57:04 -0400 Subject: [PATCH] fix append device --- spotipy/client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spotipy/client.py b/spotipy/client.py index 7e151b1..42ff77a 100644 --- a/spotipy/client.py +++ b/spotipy/client.py @@ -995,7 +995,10 @@ class Spotify(object): - device_id - device id to append ''' if device_id: - path += "&device_id=%s" % device_id + if '?' in path: + path += "&device_id=%s" % device_id + else: + path += "?device_id=%s" % device_id return path def _get_id(self, type, id):