diff options
author | sr55 <[email protected]> | 2010-09-10 23:38:47 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-09-10 23:38:47 +0000 |
commit | 96c65225e5faa620a6539deb9795ee5835e50978 (patch) | |
tree | 3dfc19a62017f5050f8171faf573baa4b4c78a81 /win/C#/HandBrake.ApplicationServices | |
parent | a007891bf9f7e53d3705c51b5b41f9e56a144031 (diff) |
WinGui:
- Fix for the Title parser. Was expecting "+ angle" to always be there which is no longer the case.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3511 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/HandBrake.ApplicationServices')
-rw-r--r-- | win/C#/HandBrake.ApplicationServices/Parsing/Title.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/win/C#/HandBrake.ApplicationServices/Parsing/Title.cs b/win/C#/HandBrake.ApplicationServices/Parsing/Title.cs index 488014304..bca98142a 100644 --- a/win/C#/HandBrake.ApplicationServices/Parsing/Title.cs +++ b/win/C#/HandBrake.ApplicationServices/Parsing/Title.cs @@ -136,10 +136,11 @@ namespace HandBrake.ApplicationServices.Parsing if (m.Success)
thisTitle.SourceName = path.Replace("+ stream:", string.Empty).Trim();
+ string nextLine = output.ReadLine();
if (!Init.DisableDvdNav)
{
// Get the Angles for the title.
- m = Regex.Match(output.ReadLine(), @" \+ angle\(s\) ([0-9])");
+ m = Regex.Match(nextLine, @" \+ angle\(s\) ([0-9])");
if (m.Success)
{
string angleList = m.Value.Replace("+ angle(s) ", string.Empty).Trim();
@@ -147,11 +148,12 @@ namespace HandBrake.ApplicationServices.Parsing int.TryParse(angleList, out angleCount);
thisTitle.AngleCount = angleCount;
+ nextLine = output.ReadLine();
}
}
// Get duration for this title
- m = Regex.Match(output.ReadLine(), @"^ \+ duration: ([0-9]{2}:[0-9]{2}:[0-9]{2})");
+ m = Regex.Match(nextLine, @"^ \+ duration: ([0-9]{2}:[0-9]{2}:[0-9]{2})");
if (m.Success)
thisTitle.Duration = TimeSpan.Parse(m.Groups[1].Value);
|