Fixed lastfm module to handle new format.
parent
97a3f884bc
commit
0ef5fefd3f
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue