Fixed: series/episode rating is 0-10

This commit is contained in:
Mark McDowall 2014-02-19 23:06:44 -08:00
parent b05d2c17e5
commit 21afdf80a2
1 changed files with 2 additions and 2 deletions

View File

@ -218,7 +218,7 @@ namespace NzbDrone.Core.Metadata.Consumers.Xbmc
var tvShow = new XElement("tvshow");
tvShow.Add(new XElement("title", series.Title));
tvShow.Add(new XElement("rating", series.Ratings.Percentage));
tvShow.Add(new XElement("rating", (decimal)series.Ratings.Percentage/10));
tvShow.Add(new XElement("plot", series.Overview));
//Todo: probably will need to use TVDB to use this feature...
@ -373,7 +373,7 @@ namespace NzbDrone.Core.Metadata.Consumers.Xbmc
}
details.Add(new XElement("watched", "false"));
details.Add(new XElement("rating", episode.Ratings.Percentage));
details.Add(new XElement("rating", (decimal)episode.Ratings.Percentage/10));
//Todo: get guest stars, writer and director
//details.Add(new XElement("credits", tvdbEpisode.Writer.FirstOrDefault()));