From 4d965955d15e2a598a8cfae78f48aca53e459aa9 Mon Sep 17 00:00:00 2001 From: jasimancas Date: Mon, 16 Nov 2020 18:57:24 +0100 Subject: [PATCH] - Add rating --- .../Extras/Metadata/Consumers/Xbmc/XbmcMetadata.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/NzbDrone.Core/Extras/Metadata/Consumers/Xbmc/XbmcMetadata.cs b/src/NzbDrone.Core/Extras/Metadata/Consumers/Xbmc/XbmcMetadata.cs index 5c6aeb175..82769531b 100644 --- a/src/NzbDrone.Core/Extras/Metadata/Consumers/Xbmc/XbmcMetadata.cs +++ b/src/NzbDrone.Core/Extras/Metadata/Consumers/Xbmc/XbmcMetadata.cs @@ -160,6 +160,11 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Xbmc details.Add(setRating); } + if (movie.Ratings != null && movie.Ratings.Votes > 0) + { + details.Add(new XElement("rating", movie.Ratings.Value)); + } + details.Add(new XElement("userrating")); details.Add(new XElement("top250"));