From f513122e5a74a2e5947eac381ac7a93aa02cdeef Mon Sep 17 00:00:00 2001 From: thomkaptein Date: Tue, 11 Feb 2025 19:38:04 +0100 Subject: [PATCH] fix fallback album not being selected --- src/FMBot.Bot/Services/GameService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/FMBot.Bot/Services/GameService.cs b/src/FMBot.Bot/Services/GameService.cs index f0f71dcf..ee5c5a25 100644 --- a/src/FMBot.Bot/Services/GameService.cs +++ b/src/FMBot.Bot/Services/GameService.cs @@ -146,7 +146,6 @@ public static TopAlbum PickAlbumForPixelation(List topAlbums, List w.AlbumCoverUrl != null && - !recentJumblesHashset.Contains(w.AlbumName) && w.AlbumName.Length is > 2 and < 50 && !w.AlbumName.StartsWith(ConfigData.Data.Bot.Prefix, StringComparison.OrdinalIgnoreCase) && !w.AlbumName.StartsWith("…")) @@ -178,7 +177,9 @@ w.AlbumName.Length is > 2 and < 50 && } var eligibleAlbums = topAlbums - .Where(w => w.UserPlaycount >= finalMinPlaycount) + .Where(w => + !recentJumblesHashset.Contains(w.AlbumName) && + w.UserPlaycount >= finalMinPlaycount) .ToList(); Log.Information("PickAlbumForPixelation: {topArtistCount} top artists - {jumblesPlayedTodayCount} jumbles played today - " +