mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-17 10:45:49 +02:00
Fixed: Missing leading 0 in minutes/seconds for media info duration
Closes #4208
This commit is contained in:
parent
e5e86680c8
commit
a2050803a2
@ -56,10 +56,14 @@ private static string FormatRuntime(TimeSpan runTime)
|
||||
|
||||
if (runTime.Hours > 0)
|
||||
{
|
||||
formattedRuntime += $"{runTime.Hours}:";
|
||||
formattedRuntime += $"{runTime.Hours}:{runTime.Minutes:00}:";
|
||||
}
|
||||
else
|
||||
{
|
||||
formattedRuntime += $"{runTime.Minutes}:";
|
||||
}
|
||||
|
||||
formattedRuntime += $"{runTime.Minutes}:{runTime.Seconds}";
|
||||
formattedRuntime += $"{runTime.Seconds:00}";
|
||||
|
||||
return formattedRuntime;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user