1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

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

View File

@ -306,7 +306,7 @@ public override MetadataFileResult EpisodeMetadata(Series series, EpisodeFile ep
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);