0)
{
try
{
var s = line.Replace(">", ">").Substring(0, idx);
s = s.Remove(0, s.IndexOf(':') + 1);
var arr = s.Split(new char[] { '-', '>' }, StringSplitOptions.RemoveEmptyEntries);
var p = new Paragraph();
p.StartTime = DecodeTimeCode(arr[0]);
p.EndTime = DecodeTimeCode(arr[1]);
int start = line.IndexOf("
', ',', '.' }, StringSplitOptions.RemoveEmptyEntries);
int milliseconds = int.Parse(parts[parts.Length - 1]);
int seconds = int.Parse(parts[parts.Length - 2]);
int minutes = 0;
if (parts.Length > 2)
minutes = int.Parse(parts[parts.Length - 3]);
int hour = 0;
if (parts.Length > 3)
hour = int.Parse(parts[parts.Length - 4]);
return new TimeCode(hour, minutes, seconds, milliseconds);
}
}
}