1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-19 17:32:38 +01:00

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>
This commit is contained in:
OnTheCliff 2024-08-02 23:23:16 -04:00 committed by GitHub
parent 74246df881
commit 5533528b56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,9 +55,9 @@ public static MediaInfoResource ToResource(this MediaInfoModel model, string sce
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}";