mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
parent
099d0b6e67
commit
083c4750fb
@ -52,16 +52,12 @@ public static MediaInfoResource ToResource(this MediaInfoModel model, string sce
|
||||
|
||||
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}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user