From 2f413c68d9ccfb6da53c8e21b072c9defb22e56a Mon Sep 17 00:00:00 2001 From: Bogdan Date: Mon, 12 Aug 2024 23:25:31 +0300 Subject: [PATCH] Fixed: Total runtime hours without decimal point --- src/Radarr.Api.V3/MovieFiles/MediaInfoResource.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Radarr.Api.V3/MovieFiles/MediaInfoResource.cs b/src/Radarr.Api.V3/MovieFiles/MediaInfoResource.cs index 06eb16871..38aa51dca 100644 --- a/src/Radarr.Api.V3/MovieFiles/MediaInfoResource.cs +++ b/src/Radarr.Api.V3/MovieFiles/MediaInfoResource.cs @@ -55,9 +55,11 @@ namespace Radarr.Api.V3.MovieFiles private static string FormatRuntime(TimeSpan runTime) { - if (runTime.TotalHours > 0) + var hours = (int)runTime.TotalHours; + + if (hours > 0) { - return $"{runTime.TotalHours}:{runTime.Minutes:00}:{runTime.Seconds:00}"; + return $"{hours}:{runTime.Minutes:00}:{runTime.Seconds:00}"; } return $"{runTime.Minutes}:{runTime.Seconds:00}";