mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-21 22:05:38 -04:00
New: Skyhook! fixing your calendars!
This commit is contained in:
@@ -14,7 +14,7 @@ using TVDBSharp.Models.Enums;
|
||||
|
||||
namespace NzbDrone.Core.MetadataSource
|
||||
{
|
||||
public class TvDbProxy : ISearchForNewSeries, IProvideSeriesInfo
|
||||
public class TvDbProxy : ISearchForNewSeries
|
||||
{
|
||||
private readonly Logger _logger;
|
||||
private static readonly Regex CollapseSpaceRegex = new Regex(@"\s+", RegexOptions.Compiled);
|
||||
@@ -215,14 +215,14 @@ namespace NzbDrone.Core.MetadataSource
|
||||
return phrase;
|
||||
}
|
||||
|
||||
private static Tv.Ratings GetRatings(int ratingCount, double? rating)
|
||||
private static Tv.Ratings GetRatings(int ratingCount, decimal? rating)
|
||||
{
|
||||
|
||||
var result = new Tv.Ratings { Votes = ratingCount };
|
||||
|
||||
if (rating != null)
|
||||
{
|
||||
result.Percentage = (int)(rating.Value * 100);
|
||||
result.Value = rating.Value;
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user