Fixed: Round durationseconds in Kodi metadata (#6204)

This commit is contained in:
Robin Dadswell 2021-04-20 18:41:54 +01:00 committed by GitHub
parent 2e62aad279
commit 8d17f0b1db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,7 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Xbmc
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);