summaryrefslogtreecommitdiffstats
path: root/win/C#/Parsing
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-11-19 21:10:25 +0000
committersr55 <[email protected]>2009-11-19 21:10:25 +0000
commit9fba6b13f44cafd962c59b29261e9dd35756affa (patch)
tree1c43eba78729f5a55f720783bb8a8d8875e7b6bd /win/C#/Parsing
parent2e91534cfcdcfb9a5b725332dee64aaca7e1be51 (diff)
WinGui:
- Fix Parser multi-angle support git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2944 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Parsing')
-rw-r--r--win/C#/Parsing/Title.cs14
1 files changed, 5 insertions, 9 deletions
diff --git a/win/C#/Parsing/Title.cs b/win/C#/Parsing/Title.cs
index 1a98a58ed..a88b7bab7 100644
--- a/win/C#/Parsing/Title.cs
+++ b/win/C#/Parsing/Title.cs
@@ -149,19 +149,15 @@ namespace Handbrake.Parsing
if (!Properties.Settings.Default.noDvdNav)
{
// Get the Angles for the title.
- m = Regex.Match(output.ReadLine(), @" \+ angle\(s\) ([0-9,])");
+ m = Regex.Match(output.ReadLine(), @" \+ angle\(s\) ([0-9])");
if (m.Success)
{
String angleList = m.Value.Replace("+ angle(s) ", "").Trim();
+ int angleCount;
+ int.TryParse(angleList, out angleCount);
- if (angleList.Contains(","))
- {
- string[] angles = angleList.Split(',');
- foreach (string s in angles)
- thisTitle.m_angles.Add(s);
- }
- else
- thisTitle.m_angles.Add(m.Value.Replace("+ angle(s) ", "").Trim());
+ for (int i = 1; i <= angleCount; i++)
+ thisTitle.m_angles.Add(i.ToString());
}
}