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:
parent
2e62aad279
commit
8d17f0b1db
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user