1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-23 08:15:27 +00:00

Fixed: Missing leading 0 in minutes/seconds for media info duration

Closes #4208
This commit is contained in:
Mark McDowall 2020-12-31 11:50:51 -08:00
parent e5e86680c8
commit a2050803a2

View file

@ -56,10 +56,14 @@ namespace Sonarr.Api.V3.EpisodeFiles
if (runTime.Hours > 0) 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; return formattedRuntime;
} }