From 6934eafd4416322f4677414d3f7f997e82f1bca8 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 19 Apr 2021 22:44:49 -0700 Subject: [PATCH] Fixed: Round durationseconds in Kodi metadata --- .../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 0422289c4..ad5424f92 100644 --- a/src/NzbDrone.Core/Extras/Metadata/Consumers/Xbmc/XbmcMetadata.cs +++ b/src/NzbDrone.Core/Extras/Metadata/Consumers/Xbmc/XbmcMetadata.cs @@ -306,7 +306,7 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Xbmc if (episodeFile.MediaInfo.RunTime != null) { video.Add(new XElement("duration", episodeFile.MediaInfo.RunTime.TotalMinutes)); - video.Add(new XElement("durationinseconds", episodeFile.MediaInfo.RunTime.TotalSeconds)); + video.Add(new XElement("durationinseconds", Math.Round(episodeFile.MediaInfo.RunTime.TotalSeconds))); } streamDetails.Add(video);