Fixed: Round durationseconds in Kodi metadata

This commit is contained in:
Mark McDowall 2021-04-19 22:44:49 -07:00
parent c669be317f
commit 6934eafd44
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Xbmc
if (episodeFile.MediaInfo.RunTime != null) if (episodeFile.MediaInfo.RunTime != null)
{ {
video.Add(new XElement("duration", episodeFile.MediaInfo.RunTime.TotalMinutes)); 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); streamDetails.Add(video);