Skip to content

Commit

Permalink
Fix commuinity rating for episodes
Browse files Browse the repository at this point in the history
Use the helper method instead of directly computing the value.
  • Loading branch information
revam committed Aug 30, 2021
1 parent 70436c9 commit 3a85df6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shokofin/Providers/EpisodeProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public async Task<MetadataResult<Episode>> 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)
Expand Down

0 comments on commit 3a85df6

Please sign in to comment.