summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions
diff options
context:
space:
mode:
authorsr55 <[email protected]>2007-12-07 22:03:24 +0000
committersr55 <[email protected]>2007-12-07 22:03:24 +0000
commitf23b40d16b3a9dec9b5d420e402e7c4fb988ae4a (patch)
tree0bd82a1f6b9fbb58b2b0ab2ba627f70f7c141eee /win/C#/Functions
parent00e6db9ff1c1d2b2ec0999f71e9795da18c24155 (diff)
WinGui:
- Implemented Auto File naming option. Can be enabled from Tools > Options - Implemented Auto Select Subtitle feature for Forced Subtitles. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1107 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions')
-rw-r--r--win/C#/Functions/QueryParser.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/win/C#/Functions/QueryParser.cs b/win/C#/Functions/QueryParser.cs
index 00ae96655..110294803 100644
--- a/win/C#/Functions/QueryParser.cs
+++ b/win/C#/Functions/QueryParser.cs
@@ -589,7 +589,8 @@ namespace Handbrake.Functions
Match optimizeMP4 = Regex.Match(input, @"-O");
//Audio Settings Tab
- Match subtitles = Regex.Match(input, @"-s ([0-9]*)");
+ Match subtitles = Regex.Match(input, @"-s ([0-9a-zA-Z]*)");
+ Match subScan = Regex.Match(input, @"-U");
Match audioBitrate = Regex.Match(input, @"-B ([0-9]*)");
Match audioSampleRate = Regex.Match(input, @"-R ([0-9.]*)");
Match audioChannelsMix = Regex.Match(input, @"-6 ([0-9a-z0-9]*)"); // 1 -6 dpl2 // Broken
@@ -849,7 +850,12 @@ namespace Handbrake.Functions
if (subtitles.Success != false)
thisQuery.q_subtitles = subtitles.ToString().Replace("-s ", "");
else
- thisQuery.q_subtitles = "None";
+ {
+ if (subScan.Success)
+ thisQuery.q_subtitles = "Autoselect";
+ else
+ thisQuery.q_subtitles = "None";
+ }
thisQuery.q_forcedSubs = forcedSubtitles.Success;