This commit is contained in:
Mark Protas 2018-07-16 16:32:24 +00:00 committed by GitHub
commit 400d0ff22c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1788,11 +1788,12 @@ class Artist(_BaseObject, _Taggable):
return artists
def get_top_albums(self, limit=None, cacheable=True):
def get_top_albums(self, limit=None, cacheable=True, page=1):
"""Returns a list of the top albums."""
params = self._get_params()
if limit:
params["limit"] = limit
params["page"] = page
return self._get_things("getTopAlbums", "album", Album, params, cacheable)