From f08b8c4d2619fc0c7216e798c2e84d2b8c0dc108 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 20 Dec 2014 23:13:31 -0800 Subject: [PATCH] LastFM: bugfix --- plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index f913485..706e79c 100644 --- a/plugin.py +++ b/plugin.py @@ -135,7 +135,7 @@ class LastFM(callbacks.Plugin): xml = minidom.parse(f).getElementsByTagName("lfm")[0] content = xml.childNodes[1].getElementsByTagName("name") - results = [res.string.strip() for res in content[0:maxResults*2]] + results = [res.firstChild.nodeValue.strip() for res in content[0:maxResults*2]] if method in ('topalbums', 'toptracks'): # Annoying, hackish way of grouping artist+album/track items results = ["%s - %s" % (thing, artist) for thing, artist in izip(results[1::2], results[::2])]