summaryrefslogtreecommitdiffstats
path: root/win/C#/Parsing
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-04-23 18:32:54 +0000
committersr55 <[email protected]>2010-04-23 18:32:54 +0000
commit94c9aefd9b79b845124d971d165a9ca50ad4594c (patch)
treed40e399f6f16cce68f52779c93710902da2e30e2 /win/C#/Parsing
parent19a4d0b54eb161e42010cebd39d8a837d11a5809 (diff)
WinGui:
- Fix a bug in the Parser/AudioTrack object. A Track regex couldn't handle "Greek, Modern" due to the space and comma. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3254 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Parsing')
-rw-r--r--win/C#/Parsing/AudioTrack.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/C#/Parsing/AudioTrack.cs b/win/C#/Parsing/AudioTrack.cs
index 544eecf6c..161385f45 100644
--- a/win/C#/Parsing/AudioTrack.cs
+++ b/win/C#/Parsing/AudioTrack.cs
@@ -117,8 +117,8 @@ namespace Handbrake.Parsing
public static AudioTrack Parse(StringReader output)
{
string audioTrack = output.ReadLine();
- Match m = Regex.Match(audioTrack, @"^ \+ ([0-9]*), ([A-Za-z0-9]*) \((.*)\) \((.*)\)");
- Match track = Regex.Match(audioTrack, @"^ \+ ([0-9]*), ([A-Za-z0-9]*) \((.*)\)"); // ID and Language
+ Match m = Regex.Match(audioTrack, @"^ \+ ([0-9]*), ([A-Za-z0-9,\s]*) \((.*)\) \((.*)\)");
+ Match track = Regex.Match(audioTrack, @"^ \+ ([0-9]*), ([A-Za-z0-9,\s]*) \((.*)\)"); // ID and Language
Match iso639_2 = Regex.Match(audioTrack, @"iso639-2: ([a-zA-Z]*)\)");
Match samplerate = Regex.Match(audioTrack, @"([0-9]*)Hz");
Match bitrate = Regex.Match(audioTrack, @"([0-9]*)bps");