|
|
@ -106,20 +106,17 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
|
|
|
|
|
|
|
|
var model = new DownloadSettingsModel
|
|
|
|
var model = new DownloadSettingsModel
|
|
|
|
{
|
|
|
|
{
|
|
|
|
SyncFrequency = Convert.ToInt32(_configProvider.SyncFrequency),
|
|
|
|
SyncFrequency = _configProvider.SyncFrequency,
|
|
|
|
DownloadPropers = Convert.ToBoolean(_configProvider.DownloadPropers),
|
|
|
|
DownloadPropers = _configProvider.DownloadPropers,
|
|
|
|
Retention = Convert.ToInt32(_configProvider.Retention),
|
|
|
|
Retention = _configProvider.Retention,
|
|
|
|
SabHost = _configProvider.SabHost,
|
|
|
|
SabHost = _configProvider.SabHost,
|
|
|
|
SabPort = Convert.ToInt32(_configProvider.SabPort),
|
|
|
|
SabPort =_configProvider.SabPort,
|
|
|
|
SabApiKey = _configProvider.SabApiKey,
|
|
|
|
SabApiKey = _configProvider.SabApiKey,
|
|
|
|
SabUsername = _configProvider.SabUsername,
|
|
|
|
SabUsername = _configProvider.SabUsername,
|
|
|
|
SabPassword = _configProvider.SabPassword,
|
|
|
|
SabPassword = _configProvider.SabPassword,
|
|
|
|
SabTvCategory = _configProvider.SabTvCategory,
|
|
|
|
SabTvCategory = _configProvider.SabTvCategory,
|
|
|
|
SabTvPriority =
|
|
|
|
SabTvPriority = _configProvider.SabTvPriority,
|
|
|
|
(SabnzbdPriorityType)
|
|
|
|
UseBlackHole = _configProvider.UseBlackhole,
|
|
|
|
Enum.Parse(typeof(SabnzbdPriorityType),
|
|
|
|
|
|
|
|
_configProvider.SabTvPriority),
|
|
|
|
|
|
|
|
UseBlackHole = Convert.ToBoolean(_configProvider.UseBlackhole),
|
|
|
|
|
|
|
|
BlackholeDirectory = _configProvider.BlackholeDirectory
|
|
|
|
BlackholeDirectory = _configProvider.BlackholeDirectory
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -374,7 +371,7 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
return Content(SETTINGS_FAILED);
|
|
|
|
return Content(SETTINGS_FAILED);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
basicNotification.Title = SETTINGS_SAVED;
|
|
|
|
basicNotification.Title = SETTINGS_SAVED;
|
|
|
|
_notificationProvider.Register(basicNotification);
|
|
|
|
_notificationProvider.Register(basicNotification);
|
|
|
|
|
|
|
|
|
|
|
@ -437,16 +434,16 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
|
|
|
|
|
|
|
|
if (ModelState.IsValid)
|
|
|
|
if (ModelState.IsValid)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_configProvider.SyncFrequency = data.SyncFrequency.ToString();
|
|
|
|
_configProvider.SyncFrequency = data.SyncFrequency;
|
|
|
|
_configProvider.DownloadPropers = data.DownloadPropers.ToString();
|
|
|
|
_configProvider.DownloadPropers = data.DownloadPropers;
|
|
|
|
_configProvider.Retention = data.Retention.ToString();
|
|
|
|
_configProvider.Retention = data.Retention;
|
|
|
|
_configProvider.SabHost = data.SabHost;
|
|
|
|
_configProvider.SabHost = data.SabHost;
|
|
|
|
_configProvider.SabPort = data.SabPort.ToString();
|
|
|
|
_configProvider.SabPort = data.SabPort;
|
|
|
|
_configProvider.SabApiKey = data.SabApiKey;
|
|
|
|
_configProvider.SabApiKey = data.SabApiKey;
|
|
|
|
_configProvider.SabPassword = data.SabPassword;
|
|
|
|
_configProvider.SabPassword = data.SabPassword;
|
|
|
|
_configProvider.SabTvCategory = data.SabTvCategory;
|
|
|
|
_configProvider.SabTvCategory = data.SabTvCategory;
|
|
|
|
_configProvider.SabUsername = data.SabUsername;
|
|
|
|
_configProvider.SabUsername = data.SabUsername;
|
|
|
|
_configProvider.SabTvPriority = data.SabTvPriority.ToString();
|
|
|
|
_configProvider.SabTvPriority = data.SabTvPriority;
|
|
|
|
_configProvider.UseBlackhole = data.UseBlackHole;
|
|
|
|
_configProvider.UseBlackhole = data.UseBlackHole;
|
|
|
|
_configProvider.BlackholeDirectory = data.BlackholeDirectory;
|
|
|
|
_configProvider.BlackholeDirectory = data.BlackholeDirectory;
|
|
|
|
|
|
|
|
|
|
|
|