Added page param for get top albums by tag

This commit is contained in:
Mark Protas 2018-07-16 12:22:55 -04:00
parent 0b725831d2
commit 16b75e14df

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, page=1, cacheable=True):
"""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)