mirror of https://github.com/Sonarr/Sonarr
Fixed: Round durationseconds in Kodi metadata
This commit is contained in:
parent
c669be317f
commit
6934eafd44
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue