diff options
author | sr55 <[email protected]> | 2009-11-25 21:52:31 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-11-25 21:52:31 +0000 |
commit | 1ad5c0f4f6295306828d179b68bfc6756a0a9d26 (patch) | |
tree | 38639193d56f4cfed98601fc1f67540f33e7db14 /win/C#/Parsing | |
parent | 009238a822971a933d0b7642fd04c15bf8e404a2 (diff) |
WinGui:
- Batch Scan Support.
- Export.cs - Export Mac Preset (unfinished and not hooked up right now. Just checking it in so I don't lose it.)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2981 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Parsing')
-rw-r--r-- | win/C#/Parsing/Title.cs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/win/C#/Parsing/Title.cs b/win/C#/Parsing/Title.cs index a88b7bab7..f81819d43 100644 --- a/win/C#/Parsing/Title.cs +++ b/win/C#/Parsing/Title.cs @@ -25,6 +25,7 @@ namespace Handbrake.Parsing private List<String> m_angles = new List<string>();
private float m_aspectRatio;
private int[] m_autoCrop;
+ private string source;
private TimeSpan m_duration;
private Size m_resolution;
private int m_titleNumber;
@@ -72,6 +73,11 @@ namespace Handbrake.Parsing get { return m_titleNumber; }
}
+ public string SourceName
+ {
+ get { return source; }
+ }
+
/// <summary>
/// The length in time of this Title
/// </summary>
@@ -144,8 +150,12 @@ namespace Handbrake.Parsing if (m.Success)
thisTitle.m_titleNumber = int.Parse(m.Groups[1].Value.Trim());
- output.ReadLine();
-
+ // If we are scanning a groupd of files, we'll want to get the source name.
+ string path = output.ReadLine();
+ m = Regex.Match(path, @"^ \+ stream:");
+ if (m.Success)
+ thisTitle.source = path.Replace("+ stream:", "").Trim();
+
if (!Properties.Settings.Default.noDvdNav)
{
// Get the Angles for the title.
|