diff --git a/spotipy/client.py b/spotipy/client.py index be9162b..966fb94 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'): + def search(self, q, limit=10, offset=0, type='track,artist',market='US'): ''' 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) + return self._get('search', q=q, limit=limit, offset=offset, type=type,market=market) def user(self, user): ''' Gets basic profile information about a Spotify User