if (!Properties.Settings.Default.noDvdNav)\r
{\r
// Get the Angles for the title.\r
- m = Regex.Match(output.ReadLine(), @" \+ angle\(s\) ([0-9,])");\r
+ m = Regex.Match(output.ReadLine(), @" \+ angle\(s\) ([0-9])");\r
if (m.Success)\r
{\r
String angleList = m.Value.Replace("+ angle(s) ", "").Trim();\r
+ int angleCount;\r
+ int.TryParse(angleList, out angleCount);\r
\r
- if (angleList.Contains(","))\r
- {\r
- string[] angles = angleList.Split(',');\r
- foreach (string s in angles)\r
- thisTitle.m_angles.Add(s);\r
- }\r
- else\r
- thisTitle.m_angles.Add(m.Value.Replace("+ angle(s) ", "").Trim());\r
+ for (int i = 1; i <= angleCount; i++)\r
+ thisTitle.m_angles.Add(i.ToString());\r
}\r
}\r
\r