From 16f255745f735d6ae5ad3629d2d3b2b939902420 Mon Sep 17 00:00:00 2001 From: kaso17 Date: Thu, 30 Nov 2017 11:17:09 +0100 Subject: [PATCH] fix DataFolder command line option --- src/Jackett.Common/Models/Config/ConsoleOptions.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Jackett.Common/Models/Config/ConsoleOptions.cs b/src/Jackett.Common/Models/Config/ConsoleOptions.cs index db710dee7..8843d9afa 100644 --- a/src/Jackett.Common/Models/Config/ConsoleOptions.cs +++ b/src/Jackett.Common/Models/Config/ConsoleOptions.cs @@ -102,6 +102,9 @@ namespace Jackett.Common.Models.Config runtimeSettings.IgnoreSslErrors = options.IgnoreSslErrors; runtimeSettings.NoRestart = options.NoRestart; + if (!string.IsNullOrWhiteSpace(options.DataFolder)) + runtimeSettings.CustomDataFolder = options.DataFolder; + return runtimeSettings; }