From: sr55 Date: Sat, 30 Oct 2010 14:18:21 +0000 (+0000) Subject: WinGui: X-Git-Url: http://git.osdn.jp/view?a=commitdiff_plain;h=814b6bda0ca4222af32e1df07d94c617a8f64da2;p=handbrake-jp%2Fhandbrake-jp-git.git 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://localhost/HandBrake/trunk@3630 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/win/C#/HandBrake.ApplicationServices/Parsing/Subtitle.cs b/win/C#/HandBrake.ApplicationServices/Parsing/Subtitle.cs index f6ecc128..2d94e45f 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.")) {