From d28934dc0394cb733fcef025830552f86b77fd6a Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 30 Oct 2010 14:18:21 +0000 Subject: 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 --- win/C#/HandBrake.ApplicationServices/Parsing/Subtitle.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.")) { -- cgit v1.2.3