Skip to content

Commit

Permalink
Fixed lastfm module to handle new format.
Browse files Browse the repository at this point in the history
  • Loading branch information
telnoratti committed Oct 2, 2012
1 parent 97a3f88 commit 0ef5fef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/lastfm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0ef5fef

Please sign in to comment.