Merge pull request #13145 from SenorSmartyPants/RemoteImageSorting

Round RemoteImage CommunityRating to nearest tenths when sorting
This commit is contained in:
Bond-009 2025-06-01 20:14:39 +02:00 committed by GitHub
commit eea80e5735
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,7 +50,7 @@ namespace MediaBrowser.Model.Extensions
return 0;
})
.ThenByDescending(i => i.CommunityRating ?? 0)
.ThenByDescending(i => Math.Round(i.CommunityRating ?? 0, 1) )
.ThenByDescending(i => i.VoteCount ?? 0);
}
}