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 <mynameisbogdan@users.noreply.github.com>

* Update src/Radarr.Api.V3/MovieFiles/MediaInfoResource.cs

Co-authored-by: Bogdan <mynameisbogdan@users.noreply.github.com>

---------

Co-authored-by: Bogdan <mynameisbogdan@users.noreply.github.com>
pull/10263/head
OnTheCliff 3 months ago committed by GitHub
parent 74246df881
commit 5533528b56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -55,9 +55,9 @@ namespace Radarr.Api.V3.MovieFiles
private static string FormatRuntime(TimeSpan runTime) 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}"; return $"{runTime.Minutes}:{runTime.Seconds:00}";

Loading…
Cancel
Save