Damn you crappy code editor
This commit is contained in:
parent
77529fa04a
commit
0998cc6709
1 changed files with 2 additions and 2 deletions
|
@ -42,10 +42,10 @@ def lastfm(inp, nick='', say=None, db=None, bot=None):
|
||||||
else:
|
else:
|
||||||
return "Your nick is not a LastFM account. Try '.lastfm [user]'"
|
return "Your nick is not a LastFM account. Try '.lastfm [user]'"
|
||||||
|
|
||||||
if not "track" in response["recenttracks"] or len(response["recenttracks"]["track"]) == 0:
|
if not "track" in response["recenttracks"] or len(response["recenttracks"]["track"]) == 0:
|
||||||
return "No recent tracks for user \x02%s\x0F found" % user
|
return "No recent tracks for user \x02%s\x0F found" % user
|
||||||
|
|
||||||
tracks = response["recenttracks"]["track"]
|
tracks = response["recenttracks"]["track"]
|
||||||
|
|
||||||
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
|
||||||
|
|
Reference in a new issue