add --NoUpdates option

This commit is contained in:
kaso17
2018-02-09 17:30:07 +01:00
parent abb644eeb8
commit ccf6780e6d
3 changed files with 11 additions and 0 deletions

View File

@@ -69,6 +69,9 @@ namespace Jackett.Common.Models.Config
[Option("PIDFile", HelpText = "Specify the location of PID file")]
public string PIDFile { get; set; }
[Option("NoUpdates", HelpText = "Disable automatic updates")]
public bool NoUpdates { get; set; }
public RuntimeSettings ToRunTimeSettings()
{
var options = this;
@@ -102,6 +105,7 @@ namespace Jackett.Common.Models.Config
// Ignore SSL errors on Curl
runtimeSettings.IgnoreSslErrors = options.IgnoreSslErrors;
runtimeSettings.NoRestart = options.NoRestart;
runtimeSettings.NoUpdates = options.NoUpdates;
if (!string.IsNullOrWhiteSpace(options.DataFolder))
runtimeSettings.CustomDataFolder = options.DataFolder;