spotify-client
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -65,2 +65,5 @@ "use strict"; | ||
break; | ||
case 'artist-artists': | ||
url = this._getRelatedArtistsUrl(); | ||
break; | ||
case 'entity': | ||
@@ -67,0 +70,0 @@ url = this._getEntityUrl(); |
@@ -118,2 +118,9 @@ "use strict"; | ||
} | ||
}, { | ||
key: '_getRelatedArtistsUrl', | ||
value: function _getRelatedArtistsUrl() { | ||
var url = '/' + this.type + '/' + this.id + '/related-artists'; | ||
this.selector = 'response.artists'; | ||
return url; | ||
} | ||
@@ -120,0 +127,0 @@ /** |
@@ -151,2 +151,13 @@ "use strict"; | ||
}, { | ||
key: 'getRelatedArtists', | ||
value: function getRelatedArtists() { | ||
var browser = new _classesBrowser2['default']({ | ||
id: this.id, | ||
type: this.constructor._getType(), | ||
query_type: 'artist-artists', | ||
factory: Artist | ||
}); | ||
return browser.all(); | ||
} | ||
}, { | ||
key: 'topTracks', | ||
@@ -153,0 +164,0 @@ get: function get() { |
{ | ||
"name": "spotify-client", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"repository": "Cosmitar/spotify-client", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
100826
1102