Merge pull request #9 from corycorycory/patch-2

Update __init__.py
This commit is contained in:
Paul Lamere 2014-06-21 17:47:25 -04:00
commit 7d284dbeab

View File

@ -206,6 +206,8 @@ class Spotify(object):
def user_playlist(self, user, playlist_id, fields=None):
''' Gets playlist of a user
'''
if playlist_id == None:
return self.get("users/%s/starred" % (user), fields=fields)
return self.get("users/%s/playlists/%s" % (user, playlist_id), fields=fields)
def user_playlist_create(self, user, name, public=True):