* +Artist.get_mbid()

This commit is contained in:
Amr Hassan 2009-02-23 08:35:09 +00:00
parent 528de38254
commit a8897bb38b

View file

@ -722,6 +722,13 @@ class Artist(_BaseObject, _Taggable):
return _number(_extract(self._request("artist.getInfo", True), "playcount"))
def get_mbid(self):
"""Returns the MusicBrainz ID of this artist."""
doc = self._request("artist.getInfo", True)
return _extract(doc, "mbid")
def get_listener_count(self):
"""Returns the number of liteners on Last.fm."""