diff options
author | sr55 <[email protected]> | 2010-04-23 22:10:44 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-04-23 22:10:44 +0000 |
commit | 63589dc23e487ff7d2b839e74dc65d6157f02a22 (patch) | |
tree | 3c9e93b973d44338f49fbfe86b29502ca9c51ad9 /win/C#/Parsing/Title.cs | |
parent | 9d83f1c5539761bcae5b351669ac8a5c7bb1eace (diff) |
WinGui:
- Updated to make sure of the MainFeature feature.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3256 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Parsing/Title.cs')
-rw-r--r-- | win/C#/Parsing/Title.cs | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/win/C#/Parsing/Title.cs b/win/C#/Parsing/Title.cs index c4b8cc14f..e3db16a51 100644 --- a/win/C#/Parsing/Title.cs +++ b/win/C#/Parsing/Title.cs @@ -78,6 +78,11 @@ namespace Handbrake.Parsing private int titleNumber;
/// <summary>
+ /// Is A Main Title
+ /// </summary>
+ private bool mainTitle;
+
+ /// <summary>
/// The par values for this title.
/// </summary>
private Size parVal;
@@ -122,7 +127,15 @@ namespace Handbrake.Parsing /// </summary>
public int TitleNumber
{
- get { return titleNumber; }
+ get { return this.titleNumber; }
+ }
+
+ /// <summary>
+ /// Gets a value indicating whether this is a MainTitle.
+ /// </summary>
+ public bool MainTitle
+ {
+ get { return this.mainTitle; }
}
/// <summary>
@@ -210,6 +223,14 @@ namespace Handbrake.Parsing // If we are scanning a groupd of files, we'll want to get the source name.
string path = output.ReadLine();
+
+ m = Regex.Match(path, @" \+ Main Feature");
+ if (m.Success)
+ {
+ thisTitle.mainTitle = true;
+ path = output.ReadLine();
+ }
+
m = Regex.Match(path, @"^ \+ stream:");
if (m.Success)
thisTitle.source = path.Replace("+ stream:", string.Empty).Trim();
|