兼容不标准的VTT

This commit is contained in:
nilaoda 2022-12-08 22:44:26 +08:00
parent 771f842e20
commit b9dc0858ee
1 changed files with 1 additions and 0 deletions

View File

@ -171,6 +171,7 @@ namespace N_m3u8DL_RE.Common.Entity
private static TimeSpan ConvertToTS(string str) private static TimeSpan ConvertToTS(string str)
{ {
str = str.Replace(',', '.');
var ms = Convert.ToInt32(str.Split('.').Last()); var ms = Convert.ToInt32(str.Split('.').Last());
var o = str.Split('.').First(); var o = str.Split('.').First();
var t = o.Split(':').Reverse().ToList(); var t = o.Split(':').Reverse().ToList();