mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-05-03 00:41:15 -05:00
LastFM: bugfix
This commit is contained in:
parent
610eab51f8
commit
f08b8c4d26
@ -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])]
|
||||
|
Loading…
x
Reference in New Issue
Block a user