diff options
author | sr55 <[email protected]> | 2011-07-24 16:34:44 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-07-24 16:34:44 +0000 |
commit | c4562d3a2a18c932e67de3d79c44b8fab242f332 (patch) | |
tree | 8b8bf28b2e45a16e3e5e4714c2777098b54efaa8 /win/CS/HandBrake.ApplicationServices | |
parent | 4f0cc8d541dc2972a096b5294383b4656b5d550d (diff) |
WinGui: Add support for Minimum Duration setting for scans.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4135 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
5 files changed, 23 insertions, 1 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Properties/Settings.Designer.cs b/win/CS/HandBrake.ApplicationServices/Properties/Settings.Designer.cs index f478b91cb..7489ba72a 100644 --- a/win/CS/HandBrake.ApplicationServices/Properties/Settings.Designer.cs +++ b/win/CS/HandBrake.ApplicationServices/Properties/Settings.Designer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
-// Runtime Version:4.0.30319.225
+// Runtime Version:4.0.30319.431
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -274,5 +274,17 @@ namespace HandBrake.ApplicationServices.Properties { this["SendFile"] = value;
}
}
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("10")]
+ public int MinTitleScanDuration {
+ get {
+ return ((int)(this["MinTitleScanDuration"]));
+ }
+ set {
+ this["MinTitleScanDuration"] = value;
+ }
+ }
}
}
diff --git a/win/CS/HandBrake.ApplicationServices/Properties/Settings.settings b/win/CS/HandBrake.ApplicationServices/Properties/Settings.settings index a33570627..9ef6aaa0f 100644 --- a/win/CS/HandBrake.ApplicationServices/Properties/Settings.settings +++ b/win/CS/HandBrake.ApplicationServices/Properties/Settings.settings @@ -65,5 +65,8 @@ <Setting Name="SendFile" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
+ <Setting Name="MinTitleScanDuration" Type="System.Int32" Scope="User">
+ <Value Profile="(Default)">10</Value>
+ </Setting>
</Settings>
</SettingsFile>
\ No newline at end of file diff --git a/win/CS/HandBrake.ApplicationServices/Services/ScanService.cs b/win/CS/HandBrake.ApplicationServices/Services/ScanService.cs index 84d2a53d5..ace330c42 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/ScanService.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/ScanService.cs @@ -196,6 +196,8 @@ namespace HandBrake.ApplicationServices.Services extraArguments += " --no-dvdnav";
}
+ extraArguments += string.Format(" --min-duration={0}", Properties.Settings.Default.MinTitleScanDuration);
+
if (title > 0)
{
extraArguments += " --scan ";
diff --git a/win/CS/HandBrake.ApplicationServices/UserSettingConstants.cs b/win/CS/HandBrake.ApplicationServices/UserSettingConstants.cs index c79f7e5e8..02ca9cb61 100644 --- a/win/CS/HandBrake.ApplicationServices/UserSettingConstants.cs +++ b/win/CS/HandBrake.ApplicationServices/UserSettingConstants.cs @@ -110,5 +110,7 @@ namespace HandBrake.ApplicationServices /// Send file to arguments
/// </summary>
public const string SendFileToArgs = "SendFileToArgs";
+
+ public const string MinScanDuration = "MinTitleScanDuration";
}
}
diff --git a/win/CS/HandBrake.ApplicationServices/app.config b/win/CS/HandBrake.ApplicationServices/app.config index 1146cd5ce..c2bffe7e3 100644 --- a/win/CS/HandBrake.ApplicationServices/app.config +++ b/win/CS/HandBrake.ApplicationServices/app.config @@ -75,6 +75,9 @@ <setting name="SendFile" serializeAs="String">
<value>False</value>
</setting>
+ <setting name="MinTitleScanDuration" serializeAs="String">
+ <value>10</value>
+ </setting>
</HandBrake.ApplicationServices.Properties.Settings>
</userSettings>
</configuration>
|