兼容不标准的VTT
This commit is contained in:
parent
771f842e20
commit
b9dc0858ee
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue