From 8d17f0b1db69b60bba9a96e3624094cdc4710791 Mon Sep 17 00:00:00 2001 From: Robin Dadswell <19610103+RobinDadswell@users.noreply.github.com> Date: Tue, 20 Apr 2021 18:41:54 +0100 Subject: [PATCH] Fixed: Round durationseconds in Kodi metadata (#6204) --- .../Extras/Metadata/Consumers/Xbmc/XbmcMetadata.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Extras/Metadata/Consumers/Xbmc/XbmcMetadata.cs b/src/NzbDrone.Core/Extras/Metadata/Consumers/Xbmc/XbmcMetadata.cs index 1497ee45a..3741b74b1 100644 --- a/src/NzbDrone.Core/Extras/Metadata/Consumers/Xbmc/XbmcMetadata.cs +++ b/src/NzbDrone.Core/Extras/Metadata/Consumers/Xbmc/XbmcMetadata.cs @@ -301,7 +301,7 @@ public override MetadataFileResult MovieMetadata(Movie movie, MovieFile movieFil if (movieFile.MediaInfo.RunTime != default) { video.Add(new XElement("duration", movieFile.MediaInfo.RunTime.TotalMinutes)); - video.Add(new XElement("durationinseconds", movieFile.MediaInfo.RunTime.TotalSeconds)); + video.Add(new XElement("durationinseconds", Math.Round(movieFile.MediaInfo.RunTime.TotalSeconds))); } streamDetails.Add(video);