summaryrefslogtreecommitdiffstats
path: root/win/C#/Parsing/Title.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-05-07 15:09:33 +0000
committersr55 <[email protected]>2009-05-07 15:09:33 +0000
commit928eba343a9da729368ffb6f161d0d69f637d465 (patch)
tree5f36a6d84311c9dfc22b96d0f224c6c2328e848d /win/C#/Parsing/Title.cs
parent3625994b759959600fca0cc4cd0c209d74b84de5 (diff)
# New
- DTS support on the audio tab - Angle support added to the source options # Changed - Chapter Markers are not selectable when only 1 chapter is selected or available - Last Encode and scan logs now stored in application data folder. This will make them more persistent. - Option to open the HandBrake log folder from the Activity window right click menu git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2398 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Parsing/Title.cs')
-rw-r--r--win/C#/Parsing/Title.cs21
1 files changed, 19 insertions, 2 deletions
diff --git a/win/C#/Parsing/Title.cs b/win/C#/Parsing/Title.cs
index 39b8d3cfa..69afe3e90 100644
--- a/win/C#/Parsing/Title.cs
+++ b/win/C#/Parsing/Title.cs
@@ -22,6 +22,7 @@ namespace Handbrake.Parsing
private readonly List<AudioTrack> m_audioTracks;
private readonly List<Chapter> m_chapters;
private readonly List<Subtitle> m_subtitles;
+ private List<String> m_angles = new List<string>();
private float m_aspectRatio;
private int[] m_autoCrop;
private TimeSpan m_duration;
@@ -108,6 +109,14 @@ namespace Handbrake.Parsing
}
/// <summary>
+ /// Collection of Angles in this Title
+ /// </summary>
+ public List<string> Angles
+ {
+ get { return m_angles; }
+ }
+
+ /// <summary>
/// Override of the ToString method to provide an easy way to use this object in the UI
/// </summary>
/// <returns>A string representing this track in the format: {title #} (00:00:00)</returns>
@@ -134,8 +143,16 @@ namespace Handbrake.Parsing
m = Regex.Match(output.ReadLine(), @" \+ angle\(s\) ([0-9,])");
if (m.Success)
{
- // + angle(s) 1
- // Do nothing. Will add this later.
+ String angleList = m.Value.Replace("+ angle(s) ", "").Trim();
+
+ 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());
}
}