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:
parent
c669be317f
commit
6934eafd44
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user