mirror of
https://github.com/c0de-archive/spotipy.git
synced 2024-11-05 07:27:47 +00:00
Update client.py
it wasnt working before, now it is
This commit is contained in:
parent
891731c78e
commit
c9888f16bc
@ -310,7 +310,7 @@ class Spotify(object):
|
|||||||
tlist = [self._get_id('album', a) for a in albums]
|
tlist = [self._get_id('album', a) for a in albums]
|
||||||
return self._get('albums/?ids=' + ','.join(tlist))
|
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
|
''' searches for an item
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
@ -320,7 +320,7 @@ class Spotify(object):
|
|||||||
- type - the type of item to return. One of 'artist', 'album',
|
- type - the type of item to return. One of 'artist', 'album',
|
||||||
'track' or 'playlist'
|
'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):
|
def user(self, user):
|
||||||
''' Gets basic profile information about a Spotify User
|
''' Gets basic profile information about a Spotify User
|
||||||
|
Loading…
Reference in New Issue
Block a user