final !cover fix
This commit is contained in:
parent
1b721b8238
commit
c959404452
1 changed files with 3 additions and 3 deletions
|
|
@ -77,9 +77,9 @@ def setup(bot: bot.Bot):
|
||||||
try:
|
try:
|
||||||
user = bot.lastfm.get_user(username)
|
user = bot.lastfm.get_user(username)
|
||||||
|
|
||||||
if not user.get_now_playing:
|
if not user.get_now_playing():
|
||||||
last_played = user.get_recent_tracks(limit=2)
|
last_played = user.get_recent_tracks(limit=1)
|
||||||
albumobj = last_played[1].track.get_album()
|
albumobj = last_played[0].track.get_album()
|
||||||
|
|
||||||
else: albumobj = user.get_now_playing().get_album()
|
else: albumobj = user.get_now_playing().get_album()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue