From 0ef5fefd3f7212177c3a122610c15d4c3b1da73b Mon Sep 17 00:00:00 2001 From: Calvin Winkowski Date: Mon, 1 Oct 2012 21:02:31 -0400 Subject: [PATCH] Fixed lastfm module to handle new format. --- modules/lastfm.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/lastfm.py b/modules/lastfm.py index 2f7eb20..f10915b 100644 --- a/modules/lastfm.py +++ b/modules/lastfm.py @@ -114,7 +114,11 @@ def now_playing(phenny, input): tags[e.tag] = e track = tags['name'].text.strip() - artist = tags['artist'].text.strip() + + artist = "" + for e in tags['artist']: + if e.tag == 'name': + artist = e.text.strip() album = "unknown" if tags['album'].text: