1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

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

View File

@ -301,7 +301,7 @@ public override MetadataFileResult MovieMetadata(Movie movie, MovieFile movieFil
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);