mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-17 10:45:49 +02:00
Fixed: series/episode rating is 0-10
This commit is contained in:
parent
b05d2c17e5
commit
21afdf80a2
@ -218,7 +218,7 @@ private void WriteTvShowNfo(Series series, List<MetadataFile> existingMetadataFi
|
||||
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 @@ private void WriteEpisodeNfo(Series series, EpisodeFile episodeFile, List<Metada
|
||||
}
|
||||
|
||||
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()));
|
||||
|
Loading…
Reference in New Issue
Block a user