Merge pull request #42 from telnoratti/master
Patch to fix lastfm module arist parsing.
This commit is contained in:
@@ -114,7 +114,11 @@ def now_playing(phenny, input):
|
|||||||
tags[e.tag] = e
|
tags[e.tag] = e
|
||||||
|
|
||||||
track = tags['name'].text.strip()
|
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"
|
album = "unknown"
|
||||||
if tags['album'].text:
|
if tags['album'].text:
|
||||||
|
|||||||
Reference in New Issue
Block a user