From 083c4750fb01745961341152c583d09a21ad076f Mon Sep 17 00:00:00 2001 From: Qstick Date: Tue, 1 Dec 2020 23:15:41 -0500 Subject: [PATCH] Fixed: Leading zeros on MI Info Fixes #5433 --- src/Radarr.Api.V3/MovieFiles/MediaInfoResource.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Radarr.Api.V3/MovieFiles/MediaInfoResource.cs b/src/Radarr.Api.V3/MovieFiles/MediaInfoResource.cs index 3a9e2b111..897b90574 100644 --- a/src/Radarr.Api.V3/MovieFiles/MediaInfoResource.cs +++ b/src/Radarr.Api.V3/MovieFiles/MediaInfoResource.cs @@ -52,16 +52,12 @@ namespace Radarr.Api.V3.MovieFiles private static string FormatRuntime(TimeSpan runTime) { - var formattedRuntime = ""; - if (runTime.Hours > 0) { - formattedRuntime += $"{runTime.Hours}:"; + return $"{runTime.Hours}:{runTime.Minutes:00}:{runTime.Seconds:00}"; } - formattedRuntime += $"{runTime.Minutes}:{runTime.Seconds}"; - - return formattedRuntime; + return $"{runTime.Minutes}:{runTime.Seconds:00}"; } } }