Added support for related artists

This commit is contained in:
Paul Lamere
2014-07-07 17:25:19 +02:00
parent 75a3779779
commit 1c1b84c1fa
4 changed files with 40 additions and 1 deletions

View File

@@ -167,6 +167,13 @@ class Spotify(object):
trid = self._get_id('artist', artist_id)
return self.get('artists/' + trid + '/top-tracks', country=country)
def artist_related_artists(self, artist_id):
''' Get Spotify catalog information about artists similar to an identified artist. Similarity is based
on analysis of the Spotify communitys listening history.
'''
trid = self._get_id('artist', artist_id)
return self.get('artists/' + trid + '/related-artists')
def album(self, album_id):
''' returns a single album given the album's ID, URN or URL
'''