* +Artist.get_mbid()
This commit is contained in:
parent
528de38254
commit
a8897bb38b
|
@ -722,6 +722,13 @@ class Artist(_BaseObject, _Taggable):
|
||||||
|
|
||||||
return _number(_extract(self._request("artist.getInfo", True), "playcount"))
|
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):
|
def get_listener_count(self):
|
||||||
"""Returns the number of liteners on Last.fm."""
|
"""Returns the number of liteners on Last.fm."""
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue