Make sure ms part is 3-digit (#477)

This commit is contained in:
fireattack 2024-11-10 16:20:24 +08:00 committed by GitHub
parent 9fc37d5b61
commit 7d8e7c6402
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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();