added events method to Country class
This commit is contained in:
parent
f85089fe20
commit
9fdfaaf936
@ -267,6 +267,11 @@ class Country(LastfmBase):
|
||||
"""top tracks of the country"""
|
||||
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")
|
||||
def topTrack(self):
|
||||
"""top track of the country"""
|
||||
|
Loading…
Reference in New Issue
Block a user