From 31f31d07d0fe282912eb0ca1052d2ee98a1fa98d Mon Sep 17 00:00:00 2001 From: yuki Date: Wed, 8 Oct 2025 21:51:41 -0300 Subject: [PATCH] fix album retrieval in /cover --- commands/now_playing.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/now_playing.py b/commands/now_playing.py index 7e23a91..d4e74ac 100644 --- a/commands/now_playing.py +++ b/commands/now_playing.py @@ -78,10 +78,10 @@ def setup(bot: bot.Bot): user = bot.lastfm.get_user(username) if not user.get_now_playing: - last_played = user.get_recent_tracks(limit=1) - albumobj = last_played[0].get_album() - else: - albumobj = user.get_now_playing().get_album() + last_played = user.get_recent_tracks(limit=1, cacheable=False) + albumobj = last_played[0].track.get_album() + + else: albumobj = user.get_now_playing().get_album() cover_art = albumobj.get_cover_image()