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:
parent
74246df881
commit
5533528b56
@ -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}";
|
||||
|
Loading…
Reference in New Issue
Block a user