From 5533528b56cbdeaf08192f208faecac8c3ce3cc9 Mon Sep 17 00:00:00 2001 From: OnTheCliff <94244497+onthecliff@users.noreply.github.com> Date: Fri, 2 Aug 2024 23:23:16 -0400 Subject: [PATCH] Fixed: Runtime value for movies longer than 24 hours * Update MediaInfoResource.cs Fixed runtime value for movies longer than 24 hours * Update src/Radarr.Api.V3/MovieFiles/MediaInfoResource.cs Co-authored-by: Bogdan * Update src/Radarr.Api.V3/MovieFiles/MediaInfoResource.cs Co-authored-by: Bogdan --------- Co-authored-by: Bogdan --- src/Radarr.Api.V3/MovieFiles/MediaInfoResource.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Radarr.Api.V3/MovieFiles/MediaInfoResource.cs b/src/Radarr.Api.V3/MovieFiles/MediaInfoResource.cs index 77efce543..06eb16871 100644 --- a/src/Radarr.Api.V3/MovieFiles/MediaInfoResource.cs +++ b/src/Radarr.Api.V3/MovieFiles/MediaInfoResource.cs @@ -55,9 +55,9 @@ namespace Radarr.Api.V3.MovieFiles private static string FormatRuntime(TimeSpan runTime) { - if (runTime.Hours > 0) + if (runTime.TotalHours > 0) { - return $"{runTime.Hours}:{runTime.Minutes:00}:{runTime.Seconds:00}"; + return $"{runTime.TotalHours}:{runTime.Minutes:00}:{runTime.Seconds:00}"; } return $"{runTime.Minutes}:{runTime.Seconds:00}";