Make sure ms part is 3-digit (#477)
This commit is contained in:
parent
9fc37d5b61
commit
7d8e7c6402
|
@ -205,7 +205,7 @@ namespace N_m3u8DL_RE.Common.Entity
|
||||||
string[] parts = str.Split('.');
|
string[] parts = str.Split('.');
|
||||||
if (parts.Length > 1)
|
if (parts.Length > 1)
|
||||||
{
|
{
|
||||||
time += Convert.ToInt32(parts.Last());
|
time += Convert.ToInt32(parts.Last().PadRight(3, '0'));
|
||||||
str = parts.First();
|
str = parts.First();
|
||||||
}
|
}
|
||||||
var t = str.Split(':').Reverse().ToList();
|
var t = str.Split(':').Reverse().ToList();
|
||||||
|
|
Loading…
Reference in New Issue