second !cover fix
This commit is contained in:
parent
31f31d07d0
commit
939f4e1193
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ def setup(bot: bot.Bot):
|
||||||
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=1, cacheable=False)
|
last_played = user.get_recent_tracks(limit=2)
|
||||||
albumobj = last_played[0].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