mirror of
https://github.com/Radarr/Radarr
synced 2025-03-14 16:09:37 +00: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:
parent
74246df881
commit
5533528b56
1 changed files with 2 additions and 2 deletions
|
@ -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}";
|
||||
|
|
Loading…
Add table
Reference in a new issue