Skip to content

Commit

Permalink
fix fallback album not being selected
Browse files Browse the repository at this point in the history
  • Loading branch information
th0mk committed Feb 11, 2025
1 parent 5b53c02 commit f513122
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/FMBot.Bot/Services/GameService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ public static TopAlbum PickAlbumForPixelation(List<TopAlbum> topAlbums, List<Jum

topAlbums = topAlbums
.Where(w => 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("…"))
Expand Down Expand Up @@ -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 - " +
Expand Down

0 comments on commit f513122

Please sign in to comment.