diff options
Diffstat (limited to 'win/C#/Parsing')
-rw-r--r-- | win/C#/Parsing/AudioTrack.cs | 5 | ||||
-rw-r--r-- | win/C#/Parsing/Subtitle.cs | 5 | ||||
-rw-r--r-- | win/C#/Parsing/Title.cs | 6 |
3 files changed, 16 insertions, 0 deletions
diff --git a/win/C#/Parsing/AudioTrack.cs b/win/C#/Parsing/AudioTrack.cs index 6232da2a9..0f89d3d37 100644 --- a/win/C#/Parsing/AudioTrack.cs +++ b/win/C#/Parsing/AudioTrack.cs @@ -61,6 +61,11 @@ namespace Handbrake.Parsing }
}
+ public override string ToString()
+ {
+ return string.Format("{0} ({1}) ({2})", this.m_language, this.m_format, this.m_subFormat);
+ }
+
public static AudioTrack Parse(StreamReader output)
{
string curLine = output.ReadLine();
diff --git a/win/C#/Parsing/Subtitle.cs b/win/C#/Parsing/Subtitle.cs index a9c169ddc..ba037b545 100644 --- a/win/C#/Parsing/Subtitle.cs +++ b/win/C#/Parsing/Subtitle.cs @@ -25,6 +25,11 @@ namespace Handbrake.Parsing }
}
+ public override string ToString()
+ {
+ return this.m_language;
+ }
+
public static Subtitle Parse(StreamReader output)
{
string curLine = output.ReadLine();
diff --git a/win/C#/Parsing/Title.cs b/win/C#/Parsing/Title.cs index 5df7a6bb4..99b32cd70 100644 --- a/win/C#/Parsing/Title.cs +++ b/win/C#/Parsing/Title.cs @@ -133,6 +133,12 @@ namespace Handbrake.Parsing this.m_cellRange = new int[2];
}
+ public override string ToString()
+ {
+ return string.Format("{0} - {1}h{2}m{3}s", this.m_titleNumber, this.m_duration.Hours,
+ this.m_duration.Minutes, this.m_duration.Seconds);
+ }
+
public static Title Parse(StreamReader output)
{
Title thisTitle = new Title();
|