Implement geo.getMetroUniqueArtistChart for #44
This commit is contained in:
parent
2938255e2f
commit
a97c584059
12
pylast.py
12
pylast.py
|
@ -2194,14 +2194,20 @@ class Metro(_BaseObject):
|
|||
"""
|
||||
return self._get_chart("geo.getMetroHypeArtistChart", limit, from_date, to_date, cacheable)
|
||||
|
||||
def get_unique_artist_chart(self, limit=None, from_date=None, to_date=None, cacheable=True):
|
||||
"""Get a chart of the artists which make that metro unique.
|
||||
Parameters:
|
||||
from_date (Optional) : Beginning timestamp of the weekly range requested
|
||||
to_date (Optional) : Ending timestamp of the weekly range requested
|
||||
limit (Optional) : The number of results to fetch per page. Defaults to 50.
|
||||
"""
|
||||
return self._get_chart("geo.getMetroUniqueArtistChart", limit, from_date, to_date, cacheable)
|
||||
|
||||
|
||||
# TODO?
|
||||
# geo.getMetroHypeArtistChart
|
||||
# geo.getMetroHypeTrackChart
|
||||
# geo.getMetroTrackChart
|
||||
# geo.getMetroUniqueArtistChart
|
||||
# geo.getMetroUniqueTrackChart
|
||||
# geo.getMetroWeeklyChartlist
|
||||
|
||||
|
||||
class Library(_BaseObject):
|
||||
|
|
|
@ -944,6 +944,11 @@ class TestPyLast(unittest.TestCase):
|
|||
self.helper_get_metro_and_dates("get_hype_artist_chart")
|
||||
|
||||
|
||||
def test_get_metro_unique_artist_chart(self):
|
||||
# Arrange/Act/Assert
|
||||
self.helper_get_metro_and_dates("get_unique_artist_chart")
|
||||
|
||||
|
||||
def test_geo_get_metros(self):
|
||||
# Arrange
|
||||
# Act
|
||||
|
|
Loading…
Reference in a new issue