added events method to Country class
This commit is contained in:
parent
f85089fe20
commit
9fdfaaf936
@ -266,6 +266,11 @@ class Country(LastfmBase):
|
|||||||
def topTracks(self):
|
def topTracks(self):
|
||||||
"""top tracks of the country"""
|
"""top tracks of the country"""
|
||||||
return Geo.getTopTracks(self.__api, self.name)
|
return Geo.getTopTracks(self.__api, self.name)
|
||||||
|
|
||||||
|
@LastfmBase.cachedProperty
|
||||||
|
def events(self):
|
||||||
|
"""events taking place at/around the location"""
|
||||||
|
return Geo.getEvents(self.__api, self.name)
|
||||||
|
|
||||||
@LastfmBase.topProperty("topTracks")
|
@LastfmBase.topProperty("topTracks")
|
||||||
def topTrack(self):
|
def topTrack(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user