summaryrefslogtreecommitdiffstats
path: root/win/C#/HandBrake.ApplicationServices/Parsing
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-10-30 14:18:21 +0000
committersr55 <[email protected]>2010-10-30 14:18:21 +0000
commitd28934dc0394cb733fcef025830552f86b77fd6a (patch)
treef7becc6d0cd08b45029c35ea4a6aee49e126462b /win/C#/HandBrake.ApplicationServices/Parsing
parenteb0f5af88fc547eb58079da36df6d5fbd1072f1c (diff)
WinGui:
- Fix an issue where embedded SRT files were not getting detected correctly during scan. Regex was incorrect to pickup "UTF-8" git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3630 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/HandBrake.ApplicationServices/Parsing')
-rw-r--r--win/C#/HandBrake.ApplicationServices/Parsing/Subtitle.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/win/C#/HandBrake.ApplicationServices/Parsing/Subtitle.cs b/win/C#/HandBrake.ApplicationServices/Parsing/Subtitle.cs
index f6ecc1287..2d94e45f2 100644
--- a/win/C#/HandBrake.ApplicationServices/Parsing/Subtitle.cs
+++ b/win/C#/HandBrake.ApplicationServices/Parsing/Subtitle.cs
@@ -62,7 +62,8 @@ namespace HandBrake.ApplicationServices.Parsing
string curLine = output.ReadLine();
// + 1, English (iso639-2: eng) (Text)(SSA)
- Match m = Regex.Match(curLine, @"^ \+ ([0-9]*), ([A-Za-z, ]*) \((.*)\) \(([a-zA-Z]*)\)\(([a-zA-Z]*)\)");
+ // + 1, English (iso639-2: eng) (Text)(UTF-8)
+ Match m = Regex.Match(curLine, @"^ \+ ([0-9]*), ([A-Za-z, ]*) \((.*)\) \(([a-zA-Z]*)\)\(([a-zA-Z0-9\-]*)\)");
if (m.Success && !curLine.Contains("HandBrake has exited."))
{