Skip to content

Commit 3637b20

Browse files
authored
Merge pull request CloudBotIRC#133 from linuxdaemon/gonzobot+lastfm-topartists
Fix consistency in last.fm .top* commands
2 parents 00db973 + c55e091 commit 3637b20

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/lastfm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def getartistinfo(api_key, artist, user=''):
164164
return artist
165165

166166

167-
def _topartists(api_key, text, nick, period, limit=10):
167+
def _topartists(api_key, text, nick, period=None, limit=10):
168168
if text:
169169
username = get_account(text)
170170
if not username:
@@ -413,7 +413,7 @@ def toptrack(api_key, event, db, text, nick):
413413
@require_api_key
414414
def topartists(api_key, event, db, text, nick):
415415
"""Grabs a list of the top artists for a last.fm username. You can set your lastfm username with .l username"""
416-
return _topartists(api_key, text, nick, None, 5)
416+
return _topartists(api_key, text, nick)
417417

418418

419419
@hook.command("ltw", "topweek", autohelp=False)

0 commit comments

Comments
 (0)