From c9888f16bc91dc2aeddd175b25a5237b8f31eba1 Mon Sep 17 00:00:00 2001 From: eugenio412 Date: Sat, 11 Jun 2016 13:32:15 +0200 Subject: [PATCH] Update client.py it wasnt working before, now it is --- spotipy/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spotipy/client.py b/spotipy/client.py index 966fb94..be9162b 100644 --- a/spotipy/client.py +++ b/spotipy/client.py @@ -310,7 +310,7 @@ class Spotify(object): tlist = [self._get_id('album', a) for a in albums] return self._get('albums/?ids=' + ','.join(tlist)) - def search(self, q, limit=10, offset=0, type='track,artist',market='US'): + def search(self, q, limit=10, offset=0, type='track'): ''' searches for an item Parameters: @@ -320,7 +320,7 @@ class Spotify(object): - type - the type of item to return. One of 'artist', 'album', 'track' or 'playlist' ''' - return self._get('search', q=q, limit=limit, offset=offset, type=type,market=market) + return self._get('search', q=q, limit=limit, offset=offset, type=type) def user(self, user): ''' Gets basic profile information about a Spotify User