New: Skyhook! fixing your calendars!

This commit is contained in:
Keivan Beigi
2015-01-08 17:43:51 -08:00
parent 3055b90178
commit 53b22035be
19 changed files with 440 additions and 20 deletions

View File

@@ -105,8 +105,8 @@ namespace TVDBSharp.Models
_show.Network = doc.GetSeriesData("Network");
_show.Description = doc.GetSeriesData("Overview");
_show.Rating = string.IsNullOrWhiteSpace(doc.GetSeriesData("Rating"))
? (double?) null
: Convert.ToDouble(doc.GetSeriesData("Rating"),
? (decimal?) null
: Convert.ToDecimal(doc.GetSeriesData("Rating"),
System.Globalization.CultureInfo.InvariantCulture);
_show.RatingCount = string.IsNullOrWhiteSpace(doc.GetSeriesData("RatingCount"))
? 0
@@ -182,8 +182,8 @@ namespace TVDBSharp.Models
: Convert.ToInt64(episodeNode.GetXmlData("lastupdated")),
Rating =
string.IsNullOrWhiteSpace(episodeNode.GetXmlData("Rating"))
? (double?) null
: Convert.ToDouble(episodeNode.GetXmlData("Rating"),
? (Decimal?) null
: Convert.ToDecimal(episodeNode.GetXmlData("Rating"),
System.Globalization.CultureInfo.InvariantCulture),
RatingCount =
string.IsNullOrWhiteSpace(episodeNode.GetXmlData("RatingCount"))

View File

@@ -66,7 +66,7 @@ namespace TVDBSharp.Models
/// <summary>
/// Average rating as shown on IMDb.
/// </summary>
public double? Rating { get; set; }
public decimal? Rating { get; set; }
/// <summary>
/// Amount of votes cast.

View File

@@ -67,7 +67,7 @@ namespace TVDBSharp.Models
/// <summary>
/// Average rating as shown on IMDb.
/// </summary>
public double? Rating { get; set; }
public decimal? Rating { get; set; }
/// <summary>
/// Amount of votes cast.