From 45eca0e8e43eb06b7ec0cc17d51fd2724687bcf1 Mon Sep 17 00:00:00 2001 From: Amr Hassan Date: Sat, 12 Mar 2011 00:00:42 +0000 Subject: [PATCH] * New release. --- .build | 2 +- pylast.py | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.build b/.build index f11c82a..9a03714 100644 --- a/.build +++ b/.build @@ -1 +1 @@ -9 \ No newline at end of file +10 \ No newline at end of file diff --git a/pylast.py b/pylast.py index 66fa582..87dee7d 100644 --- a/pylast.py +++ b/pylast.py @@ -1411,10 +1411,16 @@ class Artist(_BaseObject, _Taggable): return _extract(self._request("artist.getInfo", True), "summary") - def get_bio_content(self): + def get_bio_content(self, language=None): """Returns the content of the artist's biography.""" - return _extract(self._request("artist.getInfo", True), "content") + if language: + params = self._get_params() + params["lang"] = language + else: + params = None + + return _extract(self._request("artist.getInfo", True, params), "content") def get_upcoming_events(self): """Returns a list of the upcoming Events for this artist."""