Update plugins/lastfm.py

This commit is contained in:
Luke Rogers 2012-04-26 10:26:53 +12:00
parent c5585633c6
commit 7ab4a36379

View file

@ -55,11 +55,11 @@ def lastfm(inp, nick='', say=None, db=None, bot=None):
album = track["album"]["#text"]
artist = track["artist"]["#text"]
out = "%s %s \x02%s\x0f" % (user, status, title)
out = '%s %s "%s"' % (user, status, title)
if artist:
out += ' by "\x02%s\x0f"' % artist
out += " by \x02%s\x0f" % artist
if album:
out += ' from the album "\x02%s\x0f"' % album
out += " from the album \x02%s\x0f" % album
if inp and not dontsave:
db.execute("insert or replace into lastfm(nick, acc) values (?,?)",