Merge pull request #124 from steinitzu/fix-recommendations-params

Recommendations seeds parameters formatted as a comma seperated list
This commit is contained in:
Paul Lamere 2016-10-24 14:47:32 -04:00 committed by GitHub
commit 22558bc253

View File

@ -676,11 +676,13 @@ class Spotify(object):
'''
params = dict(limit=limit)
if seed_artists:
params['seed_artists'] = [self._get_id('artist', a) for a in seed_artists]
params['seed_artists'] = ','.join(
[self._get_id('artist', a) for a in seed_artists])
if seed_genres:
params['seed_genres'] = seed_genres
params['seed_genres'] = ','.join(seed_genres)
if seed_tracks:
params['seed_tracks'] = [self._get_id('track', t) for t in seed_tracks]
params['seed_tracks'] = ','.join(
[self._get_id('track', t) for t in seed_tracks])
if country:
params['market'] = country