From 3a85df6e8732ce40e3854c7e44deb9cf6561c619 Mon Sep 17 00:00:00 2001 From: Mikal Stordal Date: Mon, 30 Aug 2021 23:27:33 +0200 Subject: [PATCH] Fix commuinity rating for episodes Use the helper method instead of directly computing the value. --- Shokofin/Providers/EpisodeProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shokofin/Providers/EpisodeProvider.cs b/Shokofin/Providers/EpisodeProvider.cs index 26b05910..ab7ea0ef 100644 --- a/Shokofin/Providers/EpisodeProvider.cs +++ b/Shokofin/Providers/EpisodeProvider.cs @@ -66,7 +66,7 @@ public async Task> GetMetadata(EpisodeInfo info, Cancell OriginalTitle = alternateTitle, PremiereDate = episode.AniDB.AirDate, Overview = Text.SanitizeTextSummary(episode.AniDB.Description), - CommunityRating = (float) ((episode.AniDB.Rating.Value * 10) / episode.AniDB.Rating.MaxValue) + CommunityRating = episode.AniDB.Rating.ToFloat(10), }; // NOTE: This next line will remain here till they fix the series merging for providers outside the MetadataProvider enum. if (config.SeriesGrouping == Ordering.GroupType.ShokoGroup)