Capitalised some strings

This commit is contained in:
Luke Rogers 2012-02-26 04:13:38 +13:00
parent 08a6a51d7f
commit 2020d4d5a0

View file

@ -22,12 +22,12 @@ def lastfm(inp, nick='', say=None, bot=None):
if inp: # specified a user name if inp: # specified a user name
return "error: %s" % response["message"] return "error: %s" % response["message"]
else: else:
return "your nick is not a LastFM account. try '.lastfm username'." return "Your nick is not a LastFM account. Try '.lastfm username'."
tracks = response["recenttracks"]["track"] tracks = response["recenttracks"]["track"]
if len(tracks) == 0: if len(tracks) == 0:
return "no recent tracks for user %r found" % user return "No recent tracks for user %r found." % user
if type(tracks) == list: if type(tracks) == list:
# if the user is listening to something, the tracks entry is a list # if the user is listening to something, the tracks entry is a list
@ -40,7 +40,7 @@ def lastfm(inp, nick='', say=None, bot=None):
track = tracks track = tracks
status = 'last track' status = 'last track'
else: else:
return "error parsing track listing" return "Error parsing track listing".
title = track["name"] title = track["name"]
album = track["album"]["#text"] album = track["album"]["#text"]